摘要: <!DOCTYPE html Document (function($){ $.fn.maxHeight = function(){ var max = 0; this.each(function(){ max = Math.max(max,$(this).height()) }) return m 阅读全文
posted @ 2018-01-03 20:51 mysure 阅读(747) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html extend ;(function($) { $.fn.extend({ "color":function(value){ if( value== undefined){ return this.css("color") }else{ return this.css(" 阅读全文
posted @ 2018-01-03 20:50 mysure 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Installation Using npm: Using script tag(first download one of the "builds" ): 阅读全文
posted @ 2018-01-03 20:49 mysure 阅读(446) 评论(0) 推荐(0) 编辑
摘要: $.each() 与.each()的区别 $.each()与$(selector).each()不同, 后者专用于jquery对象的遍历, 前者可用于遍历任何的集合(无论是数组或对象) 如果是数组,回调函数每次传入数组的索引和对应的值(值亦可以通过this 关键字获取,但javascript总会包装 阅读全文
posted @ 2018-01-03 20:48 mysure 阅读(1112) 评论(0) 推荐(0) 编辑