如何使用本地资源键在javascript中提示消息? [英] How to use local resource key to prompt message in javascript?
本文介绍了如何使用本地资源键在javascript中提示消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想使用LocalResourceKey在javascript中提示味精...
我尝试过的事情:
Hi guys,
I want to use LocalResourceKey to prompt msg in javascript...
What I have tried:
<script>
$(document).ready(function () {
$(".num").keypress(function (e) {
if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
$("#errmsg").html(+ <%= GetLocalResourceObject("NumOnly") %> +).show().fadeOut("slow");
return false;
}
});
});
</script>
当我使用此代码时,出现错误:
When i''m using this code, i got the error:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AddEdit.aspx.resources" was correctly embedded or linked into assembly "App_LocalResources.numericquestion.c93b92f1.pj1z0-xv" at compile time, or that all the satellite assemblies required are loadable and fully signed.
大家帮帮我吧.
感谢
please guys help me.
Thanks
推荐答案
(document).ready(function(){
(document).ready(function () {
(.num").keypress(function( e){ if(e.哪个!= 8&& e.哪个!= 0&&(e.哪个< 48 || e.哪个> 57)){
(".num").keypress(function (e) { if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
(#errmsg").html(+<%= GetLocalResourceObject("NumOnly")%> +).show().fadeOut("slow"); 返回false; } }); }); </script>
("#errmsg").html(+ <%= GetLocalResourceObject("NumOnly") %> +).show().fadeOut("slow"); return false; } }); }); </script>
当我使用此代码时,出现错误:
When i''m using this code, i got the error:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AddEdit.aspx.resources" was correctly embedded or linked into assembly "App_LocalResources.numericquestion.c93b92f1.pj1z0-xv" at compile time, or that all the satellite assemblies required are loadable and fully signed.
大家帮帮我吧.
谢谢
please guys help me.
Thanks
这篇关于如何使用本地资源键在javascript中提示消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文