老师,一个新的问题

老师,一个新的问题

http://img1.sycdn.imooc.com//climg/5dd8b78809a8d78919200946.jpg只显示出了这个,右边的没显示

我的list。jsp页面

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="top.jsp"/>
    <section id="content_wrapper">
        <section id="content" class="table-layout animated fadeIn">
            <div class="tray tray-center">
                <div class="content-header">
                    <h2> 分类管理</h2>
                    <p class="lead"></p>
                </div>
                <div class="admin-form theme-primary mw1000 center-block" style="padding-bottom: 175px;">
                    <div class="panel  heading-border">
                        <div class="panel-menu">
                            <div class="row">
                                <div class="hidden-xs hidden-sm col-md-3">
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-default light">
                                            <i class="fa fa-trash"></i>
                                        </button>
                                        <button type="button" class="btn btn-default light">
                                            <i class="fa fa-plus" onclick="javascript:window.location.href='/admin/Catalog/toAdd.do';"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="panel-body pn">
                            <table id="message-table" class="table admin-form theme-warning tc-checkbox-1">
                                <thead>
                                <tr class="">
                                    <th class="text-center hidden-xs">Select</th>
                                    <th class="hidden-xs">名称</th>
                                    <th class="hidden-xs">描述</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <c:forEach items="${root.children}" var="cat1">
                                <tr class="message-unread">
                                    <td class="hidden-xs">
                                        <label class="option block mn">
                                            <input type="checkbox" name="mobileos" value="FR">
                                            <span class="checkbox mn"></span>
                                        </label>
                                    </td>
                                    <td>${cat1.title}</td>
                                    <td>${cat1.info}</td>
                                    <td>
                                        <a href="/admin/Catalog/remove.do?id=${cat1.id}">删除</a>
                                    </td>
                                </tr>
                                    <c:forEach items="${cat1.children}" var="cat2">
                                        <tr class="message-unread">
                                            <td class="hidden-xs">
                                                <label class="option block mn">
                                                    <input type="checkbox" name="mobileos" value="FR">
                                                    <span class="checkbox mn"></span>
                                                </label>
                                            </td>
                                            <td style="padding-left: 50px;">${cat2.title}</td>
                                            <td>${cat2.info}</td>
                                            <td>
                                                <a href="/admin/Catalog/remove.do?id=${cat2.id}">删除</a>
                                            </td>
                                        </tr>
                                        <c:forEach items="${cat2.children}" var="cat3">
                                            <tr class="message-unread">
                                                <td class="hidden-xs">
                                                    <label class="option block mn">
                                                        <input type="checkbox" name="mobileos" value="FR">
                                                        <span class="checkbox mn"></span>
                                                    </label>
                                                </td>
                                                <td style="padding-left: 100px;">${cat3.title}</td>
                                                <td>${cat3.info}</td>
                                                <td>
                                                    <a href="/admin/Catalog/remove.do?id=${cat3.id}">删除</a>
                                                </td>
                                            </tr>
                                        </c:forEach>
                                    </c:forEach>
                                </c:forEach>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </section>
<jsp:include page="bottom.jsp"/>


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

6回答
提问者 Mr__Gao 2019-11-23 18:49:05

http://img1.sycdn.imooc.com//climg/5dd90e520938f7bc19201040.jpg这个是所有JS的目录,还有右边对js的引用,不知道哪里修改

  • 同学,你好!你用记事本或Sublime编辑器打开JQuery文件,一般在文件开始会有版本号。祝学习愉快!
    2019-11-23 19:02:50
  • 提问者 Mr__Gao 回复 好帮手慕珊 #2
    然后是修改哪个呢
    2019-11-23 20:30:50
  • 好帮手慕阿莹 回复 提问者 Mr__Gao #3
    1、建议同学可以下载一个高于1.9版本的jquery .min.js,放到js文件夹中并替换一下引用 2、同学也可以先情况一下浏览器的缓存,然后在试一下。 3、如果同学发布项目的Tomcat配置的applicationContext中配置了项目名,请在所有的/js/ 前边加上项目名。 如果我的回答解决了你的疑惑,请采纳!祝学习愉快!
    2019-11-24 10:03:26
好帮手慕阿莹 2019-11-23 18:12:31

建议同学可以检查一下是不是这里有js之类的没有加载好的问题:

http://img1.sycdn.imooc.com//climg/5dd9055e0944585c07620198.jpg

看看报错的找不到的js,css等,路径是哪里有问题呢,另外,同学的JQuery版本是多少呢?

这里看到的Bootstrap's JavaScript requires jQuery version 1.9.1 or higher,看报错检查 一下JQuery是否是过于低呢?


如果我的回答解决了你的疑惑,请采纳!祝学习愉快!


  • 提问者 Mr__Gao #1
    老师,你看下jQuery的版本在哪里,我放上边了
    2019-11-23 18:47:35
提问者 Mr__Gao 2019-11-23 17:58:05
好帮手慕阿莹 2019-11-23 17:48:42

同学你好,请问同学的idea或者eclipse的控制台是否有报错呢?

请同学也贴一下后台的分类的相关代码,老师看一下。

如果我的回答解决了你的疑惑,请采纳!祝学习愉快!


  • 提问者 Mr__Gao #1
    老师显示出来了,但是不知道哪里的原因,这个右边非常靠下,贴上边的回复里边了
    2019-11-23 17:57:39
慕布斯37364 2019-11-23 15:37:43

我刚刚看到你的问题了哎,我回了一下,我猜应该是同一个问题

应该是WEB-INF前边没加/,导致没有找到这个页面,如果对的话,求采纳

  • 提问者 Mr__Gao #1
    我加了“/”了
    2019-11-23 17:29:23
提问者 Mr__Gao 2019-11-23 13:10:32

还有就是,

http://…0/js/demo/demo.js
Failed to load resource: the server responded with a status of 404 ()
utility.js:4174
Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher
http://…0/js/demo/demo.js
Failed to load resource: the server responded with a status of 404 ()
pages.js:9
Uncaught ReferenceError: Demo is not defined
http://…n/Catalog/list.do
Failed to decode downloaded font: http://localhost:8080/fonts/glyphicons/glyphicons-halflings-regular.html
http://…n/Catalog/list.do
OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
http://…n/Catalog/list.do
Failed to decode downloaded font: http://localhost:8080/fonts/font-awesome/fontawesome-webfonte0a5.html?v=4.3.0
http://…n/Catalog/list.do
OTS parsing error: Size of decompressed WOFF 2.0 is less than compressed size
http://…:8080/favicon.ico
Failed to load resource: the server responded with a status of 404 ()
http://…n/Catalog/list.do
Failed to decode downloaded font: http://localhost:8080/fonts/glyphicons/glyphicons-halflings-regular.html
http://…n/Catalog/list.do
OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
http://…n/Catalog/list.do
Failed to decode downloaded font: http://localhost:8080/fonts/font-awesome/fontawesome-webfonte0a5.html?v=4.3.0
http://…n/Catalog/list.do
OTS parsing error: Size of decompressed WOFF 2.0 is less than compressed size

在页面的console出现以上信息

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师