System.Collections.Generic.Dictionary$2<string, string> ts如何遍历???
namespace FairyGUI.Utils {
class XML extends System.Object {
public name: string;
public text: string;
public attributes: System.Collections.Generic.Dictionary$2<string, string>;//这个如何遍历
TS:
xml.attributes => System.Collections.Generic.Dictionary$2<string, string>
for( key in xml.attributes ){
console.log( "----------->key: " + key + " value: " + xml.attributes[key] );//这样不能取出对应的键值呢,试了很多方法,貌似也取不出,不知道是何原理,请教谷主!
}
没有找到相关结果
已邀请:
3 个回复
谷主
赞同来自:
taojianlong - 80后IT男
赞同来自:
一只居
赞同来自: