jquery函数只能在调试模式下调用? [英] jquery function only gets called in debugging mode ?
本文介绍了jquery函数只能在调试模式下调用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hii,
我的问题非常奇怪
Hii ,
I am getting very strange issue
<script type="text/javascript">
$(document).ready(function () {
$('[id*=btnShowDetails]').click(function () {
debugger;
$(location).attr('href', './AddToCart.aspx?ProductId=3');
});
});
</script>
i只是从一个页面重定向到另一个页面......这只是刷新页面。然而,当我放一个调试器并试图检查..它很容易被重定向..
请在此建议
i am simply redirecting from one page to other .. which is just refresing the page .. however when i put a debugger and tried to check .. it easily gets redirected ..
please suggest on this
推荐答案
(document).ready(function(){
(document).ready(function () {
('[id * = btnShowDetails]')。click(function(){
debugger;
('[id*=btnShowDetails]').click(function () { debugger;
(location).attr('href','。/ AddoCoCart.aspx?ProductId = 3');
});
} );
< / script >
(location).attr('href', './AddToCart.aspx?ProductId=3'); }); }); </script>
i只是从一个页面重定向到另一个页面......这只是刷新页面。然而,当我放一个调试器并试图检查..它很容易被重定向..
请在此建议
i am simply redirecting from one page to other .. which is just refresing the page .. however when i put a debugger and tried to check .. it easily gets redirected ..
please suggest on this
这篇关于jquery函数只能在调试模式下调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文