wing2002li

导航

jquery'中的匿名函数

 
 
//jquery'中的匿名函数

(function(){

    alert("this is a test");

})(); 

 

//和这个基于jQuery的比较下:

$(function(){

    alert("this is a test");

}); 

  

posted on 2016-04-27 17:42  三省其身  阅读(2035)  评论(0编辑  收藏  举报