2013-07-28 69 views
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"}

想法?

回答