zoukankan      html  css  js  c++  java
  • textarea输入回车,前台jsp不回车问题解决

    jsp引入标签:

    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
    <%
        request.setAttribute("vEnter", "
    ");
    %>

    jsp使用,前台自动换行:

     <p><h2>${vs.index + 1}.&nbsp;<script type="text/javascript">document.write(("${fn:replace(var.QUESTIONBANK_STEM,vEnter,"<br/>")}"));</script></h2></p>

    jsp使用,前台不换行:

     <p><h2>${vs.index + 1}.&nbsp;<script type="text/javascript">document.write(("${fn:replace(var.QUESTIONBANK_STEM,vEnter,"")}"));</script></h2></p>
  • 相关阅读:
    Mysql多表关系
    Linux权限
    Linux安装python环境脚本
    ZJNU 2136
    ZJNU 2135
    ZJNU 2133
    ZJNU 1699
    ZJNU 1542
    ZJNU 1538
    ZJNU 1535
  • 原文地址:https://www.cnblogs.com/zrui-xyu/p/6007392.html
Copyright © 2011-2022 走看看