JQuery不能在Win server 2008 R2上运行 [英] JQuery is not working on Win server 2008 R2

查看:91
本文介绍了JQuery不能在Win server 2008 R2上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个Web应用程序。它在开发环境(本地PC)中工作正常。

但是当它部署在生产服务器上时。 JQuery datepicker& calader不工作。



我试图调试应用程序并发现以下错误:



< blockquote class =FQ>

Quote:

Microsoft JScript运行时错误:''jQuery''未定义



in文件:



Quote:

Scripts\jquery.datepick.js





Microsoft JScript运行时错误:对象不支持属性或方法''datepick





Quote:

$(function(){

$(''#txtLetterDate'') .datepick({dateFormat:''yyyy / mm / dd''});

});





请指南。

解决方案

(function(){


(''#txtLetterDate'')。datepick( {dateFormat:''yyyy / mm / dd''});

}) ;





请指导。


I have developed a web application. It works fine in development envirment (local PC).
But when it is deployed on the production server. JQuery datepicker & calader do not work.

I tried to debug the application and found the following errors:

Quote:

Microsoft JScript runtime error: ''jQuery'' is undefined

in file:

Quote:

Scripts\jquery.datepick.js



Microsoft JScript runtime error: Object doesn''t support property or method ''datepick



Quote:

$(function () {
$(''#txtLetterDate'').datepick({ dateFormat: ''yyyy/mm/dd'' });
});



Please guide.

解决方案

(function () {


(''#txtLetterDate'').datepick({ dateFormat: ''yyyy/mm/dd'' });
});



Please guide.


这篇关于JQuery不能在Win server 2008 R2上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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