Because the ASSscript file contains Chinese comments or Chinese alert ("Chinese information"), the referenced js file is invalid or the pop-up information is garbled. If you put the js file method directly in the .aspx file, there will be no problem. This problem is caused by text encoding in .net. We need to save the ASSscript.js file as UTF-8 or other Unicode encoding, and the problem will be solved. The original text encoding is gb2312 because there are Chinese characters in it.
How to perform encoding conversion?
1. Open it with Notepad and select Unicode encoding when saving;
2. Select Save As directly in vs. There is a small arrow on the right side of the save button, click it, then select the encoding method and save it.