When i use DatePicker, jQuery's UI plugin, in an existing .aspx page I get errors that:
(当我在现有的.aspx页面中使用jQuery的UI插件DatePicker时,出现以下错误:)
$("#datepicker").datepicker is not a function
However, when I copy and paste the same code that creates and uses the datePicker to an HTML file that's also in the same directory as the aspx page, it works flawlessly.
(但是,当我将创建和使用datePicker的相同代码复制并粘贴到与aspx页面也位于同一目录中的HTML文件中时,它可以正常工作。)
This leads me to assume that there are some JS files in the aspx page that's preventing the datePicker or maybe jQuery's UI JS files to load properly.(这使我假设aspx页面中有一些JS文件阻止了datePicker或jQuery的UI JS文件正确加载。)
Can anyone confirm my beliefs or provide any tips on finding the culprit that's interfering with jQuery's UI plugins?
(谁能确认我的信念或提供任何提示来找到干扰jQuery UI插件的元凶?)
ask by burnt1ce translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…