What does a + function() { } notation do?

This question already has an answer here:

  • JavaScript plus sign in front of function name 3 answers

  • looking at this other question (JavaScript plus sign in front of function name) on the same subject, the following seems to be the answer:

    It forces the parser to treat the part following the + as an expression. This is usually used for functions that are invoked immediately

    source - https://stackoverflow.com/a/13341710/970847


    It forces the parser to treat the part following the + as an expression. This is usually used for functions that are invoked immediately.

    From here JavaScript plus sign in front of function name

    链接地址: http://www.djcxy.com/p/94936.html

    上一篇: 关于javascript函数

    下一篇: 一个+ function(){}符号是做什么的?