I get this error! [ 'return' statement outside of function ]

后端 未结 4 998
北荒
北荒 2020-12-31 16:28

I was creating a form validator for a client and ran into this weird error only in Internet Explorer (Explorer) 7/8....

\'return\' outside of fu

4条回答
  •  悲&欢浪女
    2020-12-31 17:20

    Check to make sure you are not writing "var" in your function parameters.

    In many languages you must specify the type of the argument parameters. In JavaScript you do not have to.

提交回复
热议问题