Mr_LC
Results
1
comments of
Mr_LC
感谢作者分享哈! > 但是因为 $("p").each() 方法是定义在 jQuery 函数的 prototype 对象上面的,而 $.data()方法是定义 jQuery 函数上面的,调用的时候不从复杂的 jQuery 对象上调用,速度快得多。所以我们推荐使用第一种写法。 这里是不是笔误了, `$.data()` 应该是 `$.each`