if(typeof self.opts.select==='function'){
self.opts.select.call(target,num,itemLength)
}
(typeof self.opts.select === 'function') && self.opts.select(num,itemLength)
trigger() 方法触发被选元素的指定事件类型。
为了尽可能少的暴露出全局变量,需要引入局部作用域,就是自我执行的匿名函数
(function(){
})()
1、prototype原型
2、self的this指向LightEntire