In the project development, the route with parameter is used. Normal route switching is normal, but an error will be reported when the page is refreshed
It opens atUncaught SyntaxError: Unexpected token '<'
Report an error, confused
Uncaught ReferenceError: Engine is not defined at true:15 Uncaught ReferenceError: Engine is not defined at true:15
Open up network and that’s true
Read a lot of blogs, summed up to try three methods:
- Check whether the import path is correct
<script>
Whether the label is addedtype="text/javascript"
logo- Import path Absolute path (path with domain name)
Considering that I used relative path, is it possible that I could not find these two JS files after adding parameters to route, so I changed it to absolute path, problem solved!
Using a relative path, the load file will be downloaded at the address where your route and file name are spelled together