小编Bil*_*sky的帖子

jQuery UI datepicker将不会显示 - 包含完整代码

我在显示jQuery datepicker时遇到问题,如下所示:http: //jqueryui.com/demos/datepicker/

我相信我已经下载了所有正确的文件,但可以肯定的是,我从头开始并翻录了演示网站.不是全部,而是我认为是重要的部分.结果是没有显示datepicker且没有javascript错误.这是我的完整代码示例:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <link rel="stylesheet" href="http://static.jquery.com/ui/css/base2.css" type="text/css" media="all" />
 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" media="all" />
 <link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>

<script type="text/javascript" charset="utf-8">
 jQuery(function(){
  jQuery("#datepicker").datepicker();
 });
</script>
</head>
<body>
<input type="text" id="datepicker" class="hasDatepicker" />
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

任何帮助将非常感谢.谢谢!

javascript jquery jquery-ui datepicker

9
推荐指数
1
解决办法
3万
查看次数

为什么PHP不在FF中解释但在我的网站上的Chrome中解释?

在Chrome和Firefox中查看此网址.

http://gymshuffle.com/contact.html

如果FF,页面上有未解释的PHP代码.在Chrome中没有.

什么会导致PHP在Firefox中显示?

php firefox google-chrome http cross-browser

6
推荐指数
2
解决办法
1159
查看次数