旧版 FBJS 导致错误
我在使用一些旧的 FBJS 时遇到了麻烦。为了验证我正在使用的字段的值,
document.getElementById('email2').getValue()
这现在给了我一个错误
Error: a197943730232760_document.getElementById("email2") is null
,我在任何其他字段中都收到此错误, getChecked() 也失败了。我似乎找不到任何其他问题,这只是停止工作。
任何帮助将不胜感激。
I'm having trouble with some old legacy FBJS. To validate the value of a field I was using
document.getElementById('email2').getValue()
This is now giving me the error
Error: a197943730232760_document.getElementById("email2") is null
I'm getting this for any other fields, getChecked() is also failing. I can't seem to find any other problems and this has only stopped working.
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定这是否是 FBJS 问题。检查您是否确实有一个 ID 为“email2”的元素,从该错误消息的声音来看,您的页面根本没有“email2”,这就是它无法获取该值的原因。
I'm not sure this looks like a FBJS problem. Check you do actually have an element with the ID 'email2', from the sounds of that error message, your page doesn't have an 'email2' at all, which is why it can't get the value.