首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

学习JavaScript(2)

2012-09-09 
学习JavaScript(二)Checking if a Variable Exists(function(name){alert(Hello + name + !)})(dud

学习JavaScript(二)
Checking if a Variable Exists

(function(name){alert('Hello ' + name + '!');})('dude')


One good reason for using self-invoking anonymous functions is to have some
work done without creating global variables.
A drawback, of course, is that you cannot execute the same function twice
























热点排行