MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » 很神秘的一个有关问题纠结

很神秘的一个有关问题纠结

www.MyException.Cn  网友分享于:2013-03-31  浏览:8次
很神秘的一个问题纠结
小弟在此请教各位一个问题:
  直接进入正题: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 title="地下-1层 &#13板式换热器&#13病房西楼地下室" height="25" width="25" src="manager/images/control/shuiben.png" onclick="f_goControl('5','LHBXSHSB1BJ06
','病房西楼')" style="cursor: pointer;" >
                
<img title="地下-1层 &#13排水泵&#13病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB01','病房西楼')" style="cursor: pointer;">

<img title="地下-1层 &#13排水泵&#13病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB02','病房西楼')" style="cursor: pointer;">
                                 
<img title="地下-1层 &#13排水泵&#13病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB03','病房西楼')" style="cursor: pointer;">                            
                             
<img title="地下-1层 &#13排水泵&#13病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB04','病房西楼')" style="cursor: pointer;">                            
                                 
<img title="地下-1层 &#13排水泵&#13病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB05','病房西楼')" style="cursor: pointer;">                            
                                 
<img title="地下-1层 &#13排水泵&#13病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB06','病房西楼')" style="cursor: pointer;">
                                
<img title="地下-1层 &#13排水泵&#13病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB07','病房西楼')" style="cursor: pointer;">
                                
<img title="地下-1层 &#13排水泵&#13病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB08','病房西楼')" style="cursor: pointer;">


文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有