繁体   English   中英

jQuery Datepicker在IE中不起作用,与Firefox和Chrome兼容

[英]JQuery Datepicker not working in IE, Works fine with Firefox and Chrome

因此,我正在使用一个非常简单的Datepicker。 它在Firefox和Chrome中正常运行。 但是在IE中根本没有。 我对jQuery相对较新,无法弄清楚。 这是我的代码。 我将其剥离下来,以便该页面上除了日期选择器之外什么都没有,但仍然无法正常工作。

 <!DOCTYPE html> <html> <head> <title>Testing</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" /> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script> <script> $(document).ready(function() { $('#txtDate').datepicker({ showAnim: 'slide', dateFormat: 'mm-dd-yy', }); }); </script> <style> body { font-family:Arial; font-size : 10pt; padding:5px; } </style> </head> <body> <input type='text' id='txtDate'> </body> </html> 
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 

显然,这是服务器问题。 我使用了Mark建议的链接中描述的方法。 那在开发服务器上不起作用,因此可以肯定的是,我在开发服务器上进行了尝试,它确实起作用。 谢谢马克。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM