摘要: var paginator = function(){ this.number_of_pages; this.show_per_page; this.number_of_items; this.tab1_current_page; this.paginatorHelp; this.in... 阅读全文
posted @ 2016-01-09 12:38 路过的二师兄 阅读(288) 评论(0) 推荐(0)
摘要: 一、什么是闭包和闭包的几种写法和用法 1、什么是闭包闭包,官方对闭包的解释是:一个拥有许多变量和绑定了这些变量的环境的表达式(通常是一个函数),因而这些变量也是该表达式的一部分。闭包的特点: 1. 作为一个函数变量的一个引用,当函数返回时,其处于... 阅读全文
posted @ 2016-01-09 10:51 路过的二师兄 阅读(133) 评论(0) 推荐(0)