The js front-end page reported an error


as shown in the picture, I have no problem entering this login page before, and I didn"t report an error. Then, after I use shiro at the back end of java, I do not have the permission to skip to the login page by default and report the above error. There is also an error in jquery"s $(function () {}). No reference to jquery, should also be triggered here. What is the problem?

Mar.16,2021

check whether the page is blocked when referencing js. When the console clicks on the jquery.js file you introduced, open header to see if there is a 302 status code. Colleagues have encountered this problem before. Specifically, you can refer to this. I don't know if it is different from this: https://www.cnblogs.com/sxdcg.


the same error report as a question I answered yesterday.
js path problem causes index.html to be executed as js

there is a problem with the js path-> HTTP 404-> is mapped to index.html-> the html file is executed as js


has not written background code for a long time, give a direction:
1. First of all, there is a syntax error-there is a problem with the > symbol or tag. Find out if the HTML element tag is not closed or nested < / >, and so on.
2. When configuring web.xml files, which are intercepted and which are not intercepted, and whether static pages are directly released
3. Breakpoint to your shiro code to see if there is a problem

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46900-66565.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46900-66565.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?