2016-10-13 00:16:48 点击量:19 标签: 收藏本文
看例子
- var xml:XML =<s/>;
- trace(xml.ddd);//空串
- trace(typeof(xml.ddd));//xml
- trace(xml.ddd.toString());//空串
- trace(xml.ddd.toXMLString());//空串
- trace(xml.ddd.length());//0
足以证明,xml是个特殊的object
- var xml:Object = {};
- trace(xml.ddd);//Cuplayer.com提示:undefined
- trace(typeof(xml.ddd));//undefined
- trace(xml.ddd.toString());//Cuplayer.com提示:报错
- trace(xml.ddd.toXMLString());//报错
- trace(xml.ddd.length());//报错
回头看看这个帖子,感觉自己当初好傻,貌似是有了Proxy类以后就比较好解释这个问题了吧