![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jquery
Tempta36
这个作者很懒,什么都没留下…
展开
-
jquery 解决ie9及以下版本不支持placeholder属性
//解决ie9及以下版本不支持placeholder属性$.fn.placeholder = function(options) { var opts = $.extend({}, $.fn.placeholder.defaults, options); var isIE = document.all ? true : false; return this.each(fu转载 2017-08-17 18:40:08 · 384 阅读 · 0 评论 -
数组的forEach()和jquery的each()
//数组的forEach()//内部的this指向windowvar arr=[];arr.forEach(function(val,index){});//jquery的each()//内部的this指向遍历的每一个值$.each(arr,function(index,val){});$.each(obj,function(key,val){});$(arr).each(functi原创 2017-08-24 10:53:55 · 516 阅读 · 0 评论