lockelizhenghu_liy 2016-11-30 02:32 采纳率: 0%
浏览 1118
已结题

怎么在在页面显示上传的代码,代码中含有一些html,js等

   <script src="static/toastr/toastr.js" type="text/javascript"></script>
    <title>IT世家--首页</title>
    <script type="text/javascript">
        var basePath = "${BASE_PATH}";
    </script>
</head>
<body>
    <!-- 被拦截器拦截时显示 -->
    <div class='Alt'>
        <jsp:include page="/WEB-INF/pages/common/login.jsp"></jsp:include>
    </div>
    <div class="popup_mask" style="display: none;" onclick='shouqi()'></div>

<a href='' id='mao'></a>
           <div class="headhome">
               <div class="homeflow">
                   <div class="homebg">
                       <div class="md">
                           <div class="fr conbar" style="position: relative;" >
                                <c:if test="${not empty FRONT_LOGIN_USER }">
                                    <a class="col userLogin aaa" style="position: relative;cursor: pointer;" >
                                        <c:if test="${not empty FRONT_LOGIN_USER.TUserVcard.avatar }">
                                            <img src='${BASE_PATH}${FRONT_LOGIN_USER.TUserVcard.avatar }' class="loginName" />
                                        </c:if>
                                        <c:if test="${empty FRONT_LOGIN_USER.TUserVcard.avatar }">
                                            <img src='static/images/reg_user.png' class="loginName"/>
                                        </c:if>
                                        ${FRONT_LOGIN_USER.TUserVcard.nickName }<span class='Indexmessage'></span>
                                    </a> 
                                </c:if>
                                    <ul class="userLogin caidan" style='width: 80%;'>
                                        <li class='home' onclick="window.location.href='${BASE_PATH}homepage/homepage'">
                                            <img src="static/images/user_head_icon.png" class='img1' />
                                            <img src="static/images/user_head_icon2.png" class='img2' />
                                            <a href='javascript:;'>我的主页</a></li>
                                        <li class='info'  onclick="window.location.href='${BASE_PATH}notify/index'" style="position: relative;">
                                            <img src="static/images/user_info_icon.png" class='img1' />
                                            <img src="static/images/user_info_icon2.png" class='img2' style='padding-top: 3px;' />
                                            <a href='javascript:;'>消息<span id="indexMessage" class="nav-counter" style="margin-left: 5px;"></span></a>
                                        </li>
                                        <li class='set' onclick="window.location.href='${BASE_PATH}user/toSet'">
                                            <img src="static/images/user_set_icon.png" class='img1' />
                                            <img src="static/images/user_set_icon2.png" class='img2' /><a href='javascript:;'>设置</a></li>
                                        <li class='out' onclick="window.location.href='${BASE_PATH}login/exitLogin'">
                                            <img src="static/images/user_out_icon.png" class='img1' />
                                            <img src="static/images/user_out_icon2.png" class='img2' /><a href='javascript:;'>退出</a></li>
                                    </ul>

                                <c:if test="${empty FRONT_LOGIN_USER }">
                                    <a href="login/index" class="col dengl">登录</a> 
                                    <a href="login/index?registerFlag=1" class="col zhuc">注册</a> 
                                </c:if>

                               <a href="login/help" class="col bangz" target="_blank">帮助</a>

                           </div>
                           <div class="clear">
                           </div>
                           <div class="logo" style='padding-top: 45px;'>
                               <a>
                                <!-- LOGO -->
                                <img alt="IT世家" src="static/images/logo.png" style='width:120px;height: 90px;'>
                               </a>
                           </div>
                           <div class="zbtn">
                                <a href="sourcecode/toAdd" target="_blank">
                                    <div class="hbtn">上传源码</div>
                                </a>
                                <a href="question/toAdd" target="_blank">
                                    <div class="hbtn">我要提问</div>
                                </a>
                           </div>
  • 写回答

4条回答 默认 最新

  • zqbnqsdsmd 2016-11-30 04:30
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?