JS运行时错误显示“xxxx”未定义 [英] JS runtime error shows 'xxxx' is undefined

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

问题描述

在我在VS 2010中编写的应用程序中,我创建了一个包含多个功能的.js。当我运行调试时,它可以调用.js中的函数。由于未知原因,在.js丢失中对函数的任何调用以及JS运行时错误显示'xxxx'都是未定义的。我该怎么做才能恢复功能?这意味着对.js的引用被打破了。谢谢。

In my app coded in VS 2010, I created a .js that holds multiple functions. When I run debugging, it could call the functions in the the .js. For an unknown reason, any call to the function in the .js losses, and the the JS runtime error shows 'xxxx' is undefined. What should I do to restore the functions? That means the reference to the .js is broken. Thanks.

推荐答案

只提供建议,因为你没有提供详细信息。



所有我可以说你用调试器调用的函数不是你试图在代码中调用的函数。
Only an advice is possible because you didn't give details.

All I can say is that the function you call with the debugger is not the one you try to call in your code.


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

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