摘要:        
首先我们看call()函数的用法;call(obj,arg1,arg2,arg3);apply(obj,[arg1,agr2,agr3]);我们看最普通的函数;function main(){ var str = "hello"; console.log(str);}main(); //hello如果使用call会怎样?function main(){ var str = "hello"; console.log(str);}main.call(); //hello效果是完全一样的,我们再来试试带参数的;function main(arg1,arg2){    阅读全文
        posted @ 2013-01-11 22:12
somesayss
阅读(4017)
评论(3)
推荐(1)
                    
                
浙公网安备 33010602011771号