JS自执行函数的几种写法
摘要:一:整体写在一个括号中 代码如下:(function Show(){alert("hello");}())二:function函数整体外加括号 代码如下:(function Show(){alert("hello");})()三:function前加一元运算符或者“void”!function S...
阅读全文
posted @ 2015-10-28 14:19
posted @ 2015-10-28 14:19