JavaScript运行时错误:对象不支持属性或方法'init' [英] JavaScript runtime error: Object doesn't support property or method 'init'
本文介绍了JavaScript运行时错误:对象不支持属性或方法'init'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我正在进行表格验证,我使用login.init()从login.js调用了我的登录方法;语句,但我得到一个名为JavaScript运行时错误的异常:对象不支持属性或方法'init'..
任何人都可以帮助我..
Hi all
I amdoing form validation and I called my login method from login.js using login.init(); statement but am getting a exception called "JavaScript runtime error: Object doesn't support property or method 'init'"..
Can Anyone help me..
推荐答案
如果你想在页面加载时调用任何函数,只需将函数放入bodt标签的'onlaod'中标签如
// html代码
if you want call any function at page load just put the function in bodt tag's 'onlaod' tag like
//html code
这篇关于JavaScript运行时错误:对象不支持属性或方法'init'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文