【发布时间】:2010-11-08 04:29:49
【问题描述】:
使用 JavaScript/Ajax?
我正在尝试从以下位置提取值:
<yweather:astronomy sunrise="6:34 am" sunset="8:38 pm"/>
寻找类似的东西:
var response = transport.responseXML.getElementsByTagName("channel");
sunrise = response[0].getElementsByTagName("yweather:astronomy").item(0).Attributes["sunrise"].Value;
但到目前为止没有任何效果。 :'( 谢谢。
【问题讨论】:
标签: javascript xml ajax namespaces