When I was writing the code today, I found the js error of
"Uncaught SyntaxError: Unexpected token <" <html>, and it was still the first line of html. I was blinded. What's wrong with this first line? There is also a
< Symbol, I thought it was because my webpage tag had no closure, so I checked it and it was not! The error is shown in the figure.
Later, after investigation, it was discovered that this SyntaxError is definitely a js error! Haha, what's wrong? First of all, I checked the introduction of js and found that there was a line of js introduction error. Fortunately, I clicked one by one to see if js can be clicked. That's it.
I found that the above js import path cannot be opened normally, so I changed it to the correct js path, as follows.
Sure enough! No more
Uncaught SyntaxError: Unexpected token < error, solved perfectly!