标签:style blog http java color os
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script type="text/javascript"> /** * js 中 * () :是运算符 * (表达式) :返回表示式 * (表达式)():执行表达式 * (表达式)(参数列表): 执行表达式同时传递参数 */ var s = (function (){ alert(1) ; }) alert(s) ; (function(x){ alert(x) ; })(23) ; var generateClosure = function() { var count = 10; var get = function() { count ++; return count; }; return get; }; alert(generateClosure()()) ; </script> </head> <body> </body> </html>
JAVASCRIPT基础04-括号,布布扣,bubuko.com
标签:style blog http java color os
原文地址:http://www.cnblogs.com/liaokailin/p/3822916.html