jquery'中的匿名函数
|
|
|
//jquery'中的匿名函数
(function(){
alert("this is a test");
})();
//和这个基于jQuery的比较下:
$(function(){
alert("this is a test");
});
|
|
|
//jquery'中的匿名函数
(function(){
alert("this is a test");
})();
//和这个基于jQuery的比较下:
$(function(){
alert("this is a test");
});