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
    关注
    评论

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮