日期:2014-05-18  浏览次数:20725 次

很神秘的一个问题纠结
小弟在此请教各位一个问题:
  直接进入正题:jsp编译后莫名奇妙的断行导致js无法解析。下面贴出jsp代码
HTML code

<c:if test="${equip.eqType==1}"><img title="地上${floor }层 &#13${equip.name}&#13${equip.site}" height="25" width="25" src="manager/images/control/kongtiaofj_tbk.png" onclick="f_goControl('${equip.eqType}','${equip.equipcode}','${equip.dbBuilding.name}')" style="cursor: pointer;"></c:if>
                                 <c:if test="${equip.eqType==2}"><img title="地上${floor }层 &#13${equip.name}&#13${equip.site}" height="25" width="25" src="manager/images/control/guolu_tbk.png" onclick="f_goControl('${equip.eqType}','${equip.equipcode}','${equip.dbBuilding.name}')" style="cursor: pointer;"></c:if>
                                 <c:if test="${equip.eqType==3}"><img title="地上${floor }层 &#13${equip.name}&#13${equip.site}" height="25" width="25" src="manager/images/control/zhangming_tbk.png" onclick="f_goControl('${equip.eqType}','${equip.equipcode}','${equip.dbBuilding.name}')" style="cursor: pointer;"></c:if>
                                 <c:if test="${equip.eqType==4}"><img title="地上${floor }层 &#13${equip.name}&#13${equip.site}" height="25" width="25" src="manager/images/control/dianti_tbk.png" onclick="f_goControl('${equip.eqType}','${equip.equipcode}','${equip.dbBuilding.name}')" style="cursor: pointer;"></c:if>
                                 <c:if test="${equip.eqType==5}"><img title="地上${floor }层 &#13${equip.name}&#13${equip.site}" height="25" width="25" src="manager/images/control/shuibeng_tbk.png" onclick="f_goControl('${equip.eqType}','${equip.equipcode}','${equip.dbBuilding.name}')" style="cursor: pointer;"></c:if>
                                 <c:if test="${equip.eqType==6}"><img title="地上${floor }层 &#13${equip.name}&#13${equip.site}" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('${equip.eqType}','${equip.equipcode}','${equip.dbBuilding.name}')" style="cursor: pointer;"></c:if>
                                 <c:if test="${equip.eqType==9}"><img title="地上${floor }层 &#13${equip.name}&#13${equip.site}" height="25" width="25" src="manager/images/control/peidianxiang_tbk.png" onclick="f_goControl('${equip.eqType}','${equip.equipcode}','${equip.dbBuilding.name}')" style="cursor: pointer;"></c:if>
                                 <c:if test="${equip.eqType==10}"><img title="地上${floor }层 &#13${equip.name}&#13${equip.site}" height="25" width="25" src="manager/images/control/jiangliang_tbk.png" onclick="f_goControl('${equip.eqType}','${equip.equipcode}','${equip.dbBuilding.name}')" style="cursor: pointer;"></c:if>




在eqType = 5 那行编译后,onclick方法在其中一个参数的分号后面会莫名的断行。下面贴出运行后的源文件
HTML code

<img title="地下-1层 &#13板式换热器&#13病房西楼地下室" height="25" width="25" src="manager/images/control/shuiben.png" onclick="f_goControl('5','LHBDSHSB1BJ04
','病房西楼')" style="cursor: pointer;" >

<img