mootools中(function(){})();与function(){}的区别是什么?
例如:
1、
var myFunction = function(){
alert("hello");
};2、
var myFunction = function(){
alert("hello");
}();方法1和方法2的不同写法在作用上有什么不同呢?
例如:
1、
var myFunction = function(){
alert("hello");
};2、
var myFunction = function(){
alert("hello");
}();方法1和方法2的不同写法在作用上有什么不同呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货