JS函数没有被触发 [英] JS function not fired

查看:124
本文介绍了JS函数没有被触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个ASP.Net项目中,jQuery的datePicker函数使用得很好。在另一个项目中,我使用相同的代码,但是当我单击日期的文本框时,根本不会触发jQuery函数。块触发jQuery函数的可能原因是什么?感谢您是否可以分享您的经验。

In one of my ASP.Net project, the jQuery's datePicker function is used well. In another project, I use the same code, but the jQuery function is not fired at all when I click the textbox for a date. What is possible reason that blocks to fire the jQuery function? Appreciate if you can share your experience.

推荐答案

根据OP的评论,似乎jQuery UI或jQuery(或两者都没有!)没有加载页面。

最好的解决方案是去调试页面 - 所有现代浏览器都可以告诉你加载一些JavaScript时是否有错误。如果没有错误,你可以浏览一下加载的JavaScript列表 - 如果你的遗失了将它添加到页面的标题...
It seems - according to OP's comments - that jQuery UI or jQuery (or both!) does not loaded with the page.
The best solution is to go and debug the the page - all modern browsers can tell you if there was an error while loading some JavaScript. If there is no error, you may go over the list of loaded JavaScript - if your's missing add it at the header of your page...


检查控件的id是否不是变了!!主要原因
check if the id of the control is not getting changed!! major reason


这篇关于JS函数没有被触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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