JS中attr和prop属性的区别

JS中attr和prop属性的区别

window或document中使用.attr()方法在jQuery1.6中不能正常运行,因为window和document中不能有attributes。它们包含properties(比如:location或readyState),必须使用
JavaScript800