IE的奇妙问题

name=$(xml).find(‘name’).text();
sex=$(xml).find(‘sex’).text();
phone=$(xml).find(‘phone’).text();
address=$(xml).find(‘address’).text();

IE提示对象不支持此属性或方法,且脚本无法运行

其他浏览器正常

把phone改名或在前面加var即在IE中也正常……

不解!

–2009.8.20–

虽然探究事物运作原理是搞技术的人应该具备的精神,但实际上很多问题并不需要知道答案 ,因为这些问题本就不该存在。

严格地遵守语法规则是减少遇到这类问题的最好方法。

This entry was posted in 搞不懂. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">