About javascript function
This question already has an answer here:
The +
lets the js engine make the difference between this function expression and a function definition.
For more readability, we usually use
(function() {
return 10;
})();
See related article
链接地址: http://www.djcxy.com/p/94938.html上一篇: javascript!function(){}如何工作
下一篇: 关于javascript函数