0
ctv.currentdate = new Date(ctv["current"]["@attributes"].attr);
页面像Chrome中的魅力一样工作,但Firefox,IE10,& Safari都不起作用。火狐控制台返回以下消息:@ Symbol In Object Key Name Only Only in Chrome?
TypeError: ctv.current['@attributes'] is undefined
如果我做console.log(ctv["current"]["@attributes"]);
,火狐返回undefined
,而镀铬返回的实际值,即。 Object {attr: "2013-7-28"}
。
想法?
好的链接,谢谢 – 2013-07-28 06:14:09