"return" statement outside function
Author:Eve Cole
Update Time:2013-03-21 16:19:03
question:
Occasionally I encountered a js problem during project development, which prompted that the "return" statement was outside the function. There was no problem under IE7 and no error was reported, but there was an error prompt under IE6. After searching on the Internet, It is confirmed that it is a problem with the encoding of the js file. The default encoding for saving js files is ANSI, which is different from the saving encoding of asp.net. At this time, you only need to save the js in the form of UTF-8.
Solution: Open the JS file you want to reference in .NET, then select the menu "File - Advanced Save Options", select "UTF-8 No Signature", and save.