摘要:
最近看了很多人的微博,主要是“追梦子”的微博,总结了一下。希望大家多多指点。 this的指向在函数创建的时候是决定不了的,在调用的时候才能决定,谁调用的就指向谁 因为this只会指向它的上一级对象 例一: function a(){ var user = "追梦子"; console.log(thi 阅读全文
posted @ 2016-09-01 15:11
wupanpan
阅读(161)
评论(0)
推荐(0)
摘要:
js部分 1 'use strict'; 2 function RedEnvelope(options){ 3 if(this window){ 4 return new RedEnvelope(options); 5 } 6 var defaults = { 7 imgWidth:60,//红包的 阅读全文
posted @ 2016-09-01 14:55
wupanpan
阅读(2122)
评论(1)
推荐(0)

浙公网安备 33010602011771号