Finally, I discovered the problem. It turned out to be a problem with eclipse selecting the javascript editor. When we double-clicked a js file, eclipse used its own default javascript Editor
At this time, we need to right-click on the js file->Open With->Spket JavaScript Editor, so choose.
See if there is a perception code?