以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [请教]Uncaught ReferenceError: mystf is not defined (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=174526) |
-- 作者:kylin -- 发布时间:2022/1/19 16:48:00 -- [请教]Uncaught ReferenceError: mystf is not defined JS函数stfedtajaxform: function mystf(){ var result = submitAjaxForm(\'form1\',\'\',false); if (result ==\'OK\') {show(\'dlg1\')} else {showDialog(\'dlg2\',\'错误\',result)} } 主代码摘录: With wb.AddButtonGroup("form1","btg1",False) .Add("btn1", "确定", "button").Attribute= "" .Add("btn2", "取消","","stffltlst.htm?=" & page) .Add("btn3", "返回","","default.htm") End With With wb.AddDialog("","dlg1", "提示","档案保存成功,是否新增档案?") .AddButton("btnOK","确定") \'.AddButton("btnNo","否","").Kind = 1 \'.AddButton("btnYes","是").Attribute = "" End With With wb.AddDialog("","dlg2", "错误","") \'增加订单失败提示框 .AddButton("btnOK","确定") End With wb.AppendHTML("<script src=\'./lib/stfedtajaxform.js\'></script>") \'引入脚本文件 e.WriteString(wb.Build) \'生成网页 |
-- 作者:有点蓝 -- 发布时间:2022/1/19 16:52:00 -- js文件没有放到web目录里 |
-- 作者:kylin -- 发布时间:2022/1/19 17:10:00 -- 有保存在相关目录里头的,请见下图: |
-- 作者:kylin -- 发布时间:2022/1/19 17:13:00 -- 完整的错误提示是: Uncaught ReferenceError: mystf is not defined at HTMLButtonElement.onclick (stfedt.htm?page=0&sid=Abl000101:140:97) onclick @ stfedt.htm?page=0&sid=Abl000101:140 |
-- 作者:kylin -- 发布时间:2022/1/19 17:16:00 -- 完整的主代码: |
-- 作者:有点蓝 -- 发布时间:2022/1/19 17:24:00 -- 同样的原因:http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&Id=174505&page=2&star=2,看11楼 |
-- 作者:kylin -- 发布时间:2022/1/19 18:16:00 -- 哎 谢谢!
|