2016年10月25日
摘要: 在遍历DOM时,通常用$(selector).each(function(index,element))函数; 在遍历数据时,通常用$.each(dataresource,function(index,element))函数。 http://blog.csdn.net/zjh_1110120/art 阅读全文
posted @ 2016-10-25 16:33 筱筱鹿丸 阅读(3471) 评论(0) 推荐(0) 编辑
摘要: 对于HTML元素本身就带有的固有属性,在处理时,使用prop方法。 对于HTML元素我们自己自定义的DOM属性,在处理时,使用attr方法。 http://www.cnblogs.com/Showshare/p/different-between-attr-and-prop.html 阅读全文
posted @ 2016-10-25 14:08 筱筱鹿丸 阅读(158) 评论(0) 推荐(0) 编辑