如何让一个函数的在页面加载时就执行,嗯函数
(function myfun(param){ alert(param); })('hello world!');
就这样,myfun();这个函数就能够不用特地去调用了,其实没什么意思,你们看看就ok啦!code