随笔分类 -  jquery插件开发篇

摘要:/*对象*/ function JsonSort(obj, field, sortby) { this.obj = obj; this.field = field; this.sortby = sortby; } JsonSort.prototype.sort= function() { var $this... 阅读全文
posted @ 2016-06-06 14:27 XINYUHAI77 阅读(274) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/miid/p/4367914.html 阅读全文
posted @ 2016-05-27 12:13 XINYUHAI77 阅读(115) 评论(0) 推荐(0)
摘要:http://www.geetest.com/install/sections/idx-client-sdk.html 阅读全文
posted @ 2016-05-11 11:03 XINYUHAI77 阅读(645) 评论(0) 推荐(0)
摘要:// 创建一个新的 input var i = document.createElement("input"); // 如果创建的 input 不支持 placeholder 属性,执行以下代码 if (!("placeholder" in i)) { // 遍历所有带有 placeholder 属性的 input $("inpu... 阅读全文
posted @ 2016-05-06 11:02 XINYUHAI77 阅读(210) 评论(0) 推荐(0)
摘要:; (function ($, window, document, undefined) { function scroll() { this.num = 0; this.obj = this; this.dome = null; this.dome_ul = ... 阅读全文
posted @ 2016-04-22 11:38 XINYUHAI77 阅读(592) 评论(0) 推荐(0)
摘要:;(function($, window, document,undefined) { function Dialog(){ this.oLogin = null; this.settings = { //默认参数 w : 300, ... 阅读全文
posted @ 2016-04-21 14:51 XINYUHAI77 阅读(185) 评论(0) 推荐(0)
摘要:选项卡 111111 222222 333333 111111 222222 333333 ;(function ($, window, document, undefined) { function Tab() ... 阅读全文
posted @ 2016-04-10 14:26 XINYUHAI77 阅读(179) 评论(0) 推荐(0)
摘要:/*跟随滚动条滚动*/ var menuYloc = $(".rigfie").offset().top; $(window).scroll(function (){ var offsetTop = menuYloc + $(window).scrollTop() +"px"; $(".rigfie")... 阅读全文
posted @ 2016-03-27 22:48 XINYUHAI77 阅读(198) 评论(0) 推荐(0)
摘要:一、Lazy Load 依赖于 jQuery. 请将下列代码加入页面 head 区域:二、三、$("img.lazy").lazyload(); 阅读全文
posted @ 2016-01-18 15:09 XINYUHAI77 阅读(122) 评论(0) 推荐(0)
摘要:;(function($, window, document,undefined) { var Beautifier = function(ele, opt) { //创建对象 this.$element = ele, ... 阅读全文
posted @ 2015-12-30 16:37 XINYUHAI77 阅读(148) 评论(0) 推荐(0)