03 2017 档案
摘要:(1)原型链继承 function Parent() { // 父类 this.name = 'maxixi' } function Son() { // 子类 } Son.prototype = new Parent() // 父类上的属性和方法赋值给子类的原型上 var son = new So
阅读全文
摘要:<input type="range"/>需求:滑动时,计数$.fn.RangeSlider = function(cfg) { this.sliderCfg = { min: cfg && !isNaN(parseFloat(cfg.min)) ? Number(cfg.min) : null,
阅读全文

浙公网安备 33010602011771号