2008年5月7日
摘要: 有时候在html中自定义属性能够方便我们,比如hello,通常在ie中获取time的办法是:document.getElementById('span1').time就行,但是这个方法在firefox下不管用,兼容的做法是这样的: document.getElementById('span1').attributes['time'].nodeValue; 阅读全文
posted @ 2008-05-07 09:19 上午的绝缘杯 阅读(2896) 评论(3) 推荐(0) 编辑