小弟在此请教各位一个问题:
直接进入正题:jsp编译后莫名奇妙的断行导致js无法解析。下面贴出jsp代码
- HTML code
<c:if test="${equip.eqType==1}"><img title="地上${floor }层 
${equip.name}
${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 }层 
${equip.name}
${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 }层 
${equip.name}
${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 }层 
${equip.name}
${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 }层 
${equip.name}
${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 }层 
${equip.name}
${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 }层 
${equip.name}
${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 }层 
${equip.name}
${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层 
板式换热器
病房西楼地下室" height="25" width="25" src="manager/images/control/shuiben.png" onclick="f_goControl('5','LHBDSHSB1BJ04','病房西楼')" style="cursor: pointer;" ><img title="地下-1层 
板式换热器
病房西楼地下室" height="25" width="25" src="manager/images/control/shuiben.png" onclick="f_goControl('5','LHBXSHSB1BJ06','病房西楼')" style="cursor: pointer;" > <img title="地下-1层 
排水泵
病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB01','病房西楼')" style="cursor: pointer;"><img title="地下-1层 
排水泵
病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB02','病房西楼')" style="cursor: pointer;"> <img title="地下-1层 
排水泵
病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB03','病房西楼')" style="cursor: pointer;"> <img title="地下-1层 
排水泵
病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB04','病房西楼')" style="cursor: pointer;"> <img title="地下-1层 
排水泵
病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB05','病房西楼')" style="cursor: pointer;"> <img title="地下-1层 
排水泵
病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB06','病房西楼')" style="cursor: pointer;"> <img title="地下-1层 
排水泵
病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB07','病房西楼')" style="cursor: pointer;"> <img title="地下-1层 
排水泵
病房西楼地下室" height="25" width="25" src="manager/images/control/qianshuibang_tbk.png" onclick="f_goControl('6','LHBXJSJB1PSB08','病房西楼')" style="cursor: pointer;">