WEB前端 -- 引數傳遞
阿新 • • 發佈:2019-01-22
資料庫表中沒有該欄位,又需要該欄位時的做法是什麼呢?
其一可以是通過超連結進行“引數”的傳遞
<script> function changeReport(STEMPLEMETECODE,SURL,FID){ if(STEMPLEMETECODE == null || STEMPLEMETECODE == ''){ showInfo("無法檢視該記錄的明細,請檢查!"); return; }elseif(STEMPLEMETECODE == 'XHJWBTX'){ var url="http://127.0.0.1:8080/cngcReport/reportunit/ReportView?reportid=910005&FID="+FID; }else if(STEMPLEMETECODE == "TZSBJDTX"){ var url="http://127.0.0.1:8080/cngcReport/reportunit/ReportView?reportid=910006&FID="+FID; }else if(STEMPLEMETECODE == "JLSBJDTX"){ var url="http://127.0.0.1:8080/cngcReport/reportunit/ReportView?reportid=910007&FID="+FID; }else if(STEMPLEMETECODE == "XHJWBTX"){ var url="http://127.0.0.1:8080/cngcReport/reportunit/ReportView?reportid=910008&FID="+FID; } window.open(url); } </script>