以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- JS不起作用 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=159143) |
-- 作者:fendouww -- 发布时间:2020/12/15 15:34:00 -- JS不起作用 突然不起作用,是JS文件没写对吗?请帮忙查看下,之前都是好的 |
-- 作者:fendouww -- 发布时间:2020/12/15 15:35:00 -- function edit(){ if (table1.primarykey){ location="edit.htm?key=" + table1.primarykey; } } function del(){ if(table1.primarykey){ location="del.htm?key=" + table1.primarykey; } } function xcedit(){ if (table1.primarykey){ location="xcedit.htm?key=" + table1.primarykey; } } function xcdel(){ if(table1.primarykey){ location="xcdel.htm?key=" + table1.primarykey; } } function xcdel1(){ if(table1.primarykey){ location="xcdel.htm?key1=" + table1.primarykey; } } function xcdel2(){ if(table1.primarykey){ location="xcdel.htm?key2=" + table1.primarykey; } } function scbg(){ if(table1.primarykey){ location="scbg.htm?key=" + table1.primarykey; } } function ckbg(){ if(table1.primarykey){ location="ckbg.htm?key=" + table1.primarykey; } } function mldysc(){ if(table1.primarykey){ location="mldysc.htm?key=" + table1.primarykey; } } function mlcysc(){ if(table1.primarykey){ location="mlcysc.htm?key=" + table1.primarykey; } } function mledit(){ if(table1.primarykey){ location="mledit.htm?key=" + table1.primarykey; } } function mldysh(){ if(table1.primarykey){ location="mldysh.htm?key=" + table1.primarykey; } } function mldysh2(){ if(table1.primarykey){ location="mldysh.htm?key2=" + table1.primarykey; } } function mldysh1(){ location="mldysh.htm?flt=1"; } function jcblsh(){ if(table1.primarykey){ location="jcblsh.htm?key=" + table1.primarykey; } } function jcblsh2(){ if(table1.primarykey){ location="jcblsh.htm?key2=" + table1.primarykey; } } function jcblsh1(){ location="jcblsh.htm?flt=1"; } function yykfsc(){ If(table1.primarykey){ location="yykfsc.htm?key=" + table1.primarykey; } } function yykfsc1(){ If(table1.primarykey){ location="yykfsc.htm?id=1&key=" + table1.primarykey; } } function yykfsh(){ If(table1.primarykey){ location="yykfsh.htm?key=" + table1.primarykey; } } function yykfsh2(){ If(table1.primarykey){ location="yykfsh.htm?key2=" + table1.primarykey; } } function yykfsh1(){ location="yykfsh.htm?flt=1"; } function calc(){ document.getElementById("总费用").value = document.getElementById("单价").value * document.getElementById("实际到样_数量").value - ( - document.getElementById("运费").value); } |
-- 作者:有点蓝 -- 发布时间:2020/12/15 15:43:00 -- 自行调试 function edit(){ alert("能否弹出?"); alert(table1.primarykey); if (table1.primarykey){ location="edit.htm?key=" + table1.primarykey; } } 浏览器按F12打开开发者工具调试查看错误 上网找些专业的代码编辑器使用,比如vscode,editplus之类的,不要使用记事本编辑js文件,文件要保存为utf8编码
[此贴子已经被作者于2020/12/15 15:43:33编辑过]
|