断点当前不会被击中。没有为此文档加载任何符号。 [英] The breakpoint will not currently be hit. No symbols have been loaded for this document.
问题描述
嗨我在尝试设置我的.js文件中的断点时遇到了上述问题。我将解释我想要的实际工作状态。
我有一个文本框,应该只包含数值...就像我没有形式所以我认为在单独的.js文件中写这个函数但是这个条件没有被激发来检查我是否需要设置断点。
这里是我的代码的一部分,我需要检查条件。
Hi i'm getting the above issue when try to set the break point in one of my .js file.I will explain the Actual working status which i want.
I having a textbox which should contain only numeric values..like that i have n no of form so i thought write that function in a seperate .js file but that condition is no fired out to check that i'm need to set the break point.
here is part of my code where i need to check the condition.
function CheckNumeric(source, Limit) {
var mKeyAscii = window.event.keyCode;
if (mKeyAscii == 46 && source.value.indexOf(".") > -1) {
mKeyAscii = 0; alert("Only One .(Dot) is allowed");
document.getElementById(source.id).focus();
}
else if (!((mKeyAscii <= 57 && mKeyAscii >= 48) || mKeyAscii == 13 || mKeyAscii == 8 || mKeyAscii == 46)) {
mKeyAscii = 0; alert("Enter Only Numeric Values");
document.getElementById(source.id).focus();
}
else if (mKeyAscii == 13) {
mKeyAscii = 9;
}
}
有谁可以帮助我让我从这个摆脱......
感谢提前。
can anyone please help me to get me out from this rid...
thanks in Advance.
推荐答案
确保您的.js文件被正确引用为资源。错误消息表明项目范围内的.js文件没有可见性。
来自MSDN的这个链接可能很有用。 在程序集中嵌入JavaScript文件作为资源 [ ^ ]
祝你好运。
Assure that your .js file is correctly referenced as a resource. The error message indicates that there is no visibilty to the .js file within the project scope.
This link from MSDN may be useful. Embedding a JavaScript File as a Resource in an Assembly[^]
Good luck.
这篇关于断点当前不会被击中。没有为此文档加载任何符号。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!