引入easyui的404问题

直接在webapp创建css文件夹添加easyui

引入:

<link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
<script type="text/javascript" src="css/easyui/jquery.min.js"></script>
<link rel="stylesheet" href="css/easyui/themes/default/easyui.css">
<script type="text/javascript" src="css/easyui/jquery.easyui.min.js"></script>

错误:
  1. Request URL:
    http://localhost:8080/css/easyui/jquery.easyui.min.js
  2. Request Method:
    GET
  3. Status Code:
    404
  4. Remote Address:
    [::1]:8080
  5. Referrer Policy:
    no-referrer-when-downgrade

解决问题:

<link rel="stylesheet" type="text/css" href="/css/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="/css/easyui/demo/demo.css">
<script type="text/javascript" src="/css/easyui/jquery.min.js"></script>
<link rel="stylesheet" href="/css/easyui/themes/default/easyui.css">
<script type="text/javascript" src="/css/easyui/jquery.easyui.min.js"></script>

css前面要加/(斜杠),没有对比就没有伤害,哭。。。。
posted @ 2018-06-15 19:27  山神笔记  阅读(1438)  评论(0编辑  收藏  举报