Introduce the problem that the external file cannot be recognized

If $ is not recognized, it means that jquery is not imported correctly, you can:

<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>

It is best to use the full path for files imported under assets:

${pageContext.request.contextPath}/assets/js/jquery-3.2.1.min.js

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325495638&siteId=291194637