javascript运行时错误 [英] javascript run time error

查看:92
本文介绍了javascript运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用一个母版页,并且在子页中编写了javascript函数.

并在master的body标签中调用函数

;

我的问题是当我转到其他子窗体时,在运行时发生了一个错误,即Microsoft JScript运行时错误:预期对象

如何解决此错误.

谢谢.



i am taking one master page and i am writing a javascript function in child page

and in body tag of master i call the function

;

my problem is when i go to other child forms, in run time one error occured i.e.,Microsoft JScript runtime error: Object expected

how to solve this error.

Thanks.

推荐答案

在JavaScript中的某些地方,您尝试使用 null 值或无法公开/无法访问的方法! />
在子页面中调用该方法时该方法不可用,或者该方法中使用的任何一个值为null并尝试使用它.

找出并妥善处理.
Somewhere in your JavaScript you are trying to use a null value or a method that is not exposed/reachable!

Either the Method is not available while you call it in your child page or any one value used in the method is null and you are trying to use it.

Find that out and handle it properly.


这篇关于javascript运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆