jQuery的attr()与prop()

文章转自:https://www.cnblogs.com/dolphinX/p/3348582.htmljavascript jQuery1.6中新添加了一个prop方法,看起来和用起来都和attr方法同样,这两个方法有什么区别呢?这要从HTMl 的attribute与property区别提及,attr与prop正是这两个东西的缩写。html attribute与property attribut
相关文章
相关标签/搜索