以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  onblur为什么用不了  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=116246)

--  作者:chenjiu6202
--  发布时间:2018/3/21 17:35:00
--  onblur为什么用不了
 With wb.AddInputGroup("form1","ipg")
            With .AddInput("ysmm","原密码","text")
                .Attribute =""
            End With
            .AddInput("xmm","新密码","password")
            .AddInput("qrmm","确认密码","password")
End With

输入原密码时,当失去焦点后,调用ysmm函数,报错
 Uncaught TypeError: ysmm is not a function
    at HTMLInputElement.onblur



--  作者:chenjiu6202
--  发布时间:2018/3/21 17:44:00
--  
  With .AddInput("ysmm","原密码","text")
                .Attribute ="onblur=ysmm()"
   End With


--  作者:chenjiu6202
--  发布时间:2018/3/21 17:46:00
--  
如果写成就没有问题
  With .AddInput("ysmm","原密码","text")
                .Attribute ="""
  End With


--  作者:有点甜
--  发布时间:2018/3/21 20:10:00
--  

你onblur执行了什么代码?你ysmm是不是js代码?代码怎么写的?

 

http://www.foxtable.com/mobilehelp/scr/0108.htm

 

http://www.foxtable.com/mobilehelp/scr/0104.htm

 


--  作者:chenjiu6202
--  发布时间:2018/3/22 5:50:00
--  
错了,找到原因了