摘要:
(function($) { $.fn.snow = function(options) { var $flake = $('').css({ 'position': 'absolute', 'top': '-50px' }).html('❄'), documentHeight = $(document).height(), ... 阅读全文
随笔档案-2019年02月
jQuery,js如何扩展自定义方法
2019-02-21 15:23 by 改吧, 1628 阅读, 收藏, 编辑
摘要:
js String扩展方法 'asdasdasd'.repalceA()"AsdAsdAsd" 阅读全文
闭包概念
2019-02-19 17:08 by 改吧, 406 阅读, 收藏, 编辑
摘要:
闭包的简单定义是:函数 A 返回了一个函数 B,并且函数 B 中使用了函数 A 的变量,函数 B 就被称为闭包。 阅读全文