为什么这个来自jqueryui';s站点不再工作?

为什么这个来自jqueryui';s站点不再工作?,jquery,jquery-ui,jquery-ui-datepicker,Jquery,Jquery Ui,Jquery Ui Datepicker,为什么这个代码不再有效?它是jQueryUIExamples页面的复制和粘贴。它过去只是工作,现在不再工作了 <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Datepicker - Default functionality</title> <link rel="stylesheet" href

为什么这个代码不再有效?它是jQueryUIExamples页面的复制和粘贴。它过去只是工作,现在不再工作了

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery UI Datepicker - Default functionality</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css">
  <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  <script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script>
  $(function() {
    $( "#datepicker" ).datepicker();
  });
  </script>
</head>
<body>

<p>Date: <input type="text" id="datepicker"></p>


</body>
</html>

jQuery UI日期选择器-默认功能
$(函数(){
$(“#日期选择器”).datepicker();
});
日期:


对我来说很好。检查此链接以查看工作示例

您必须包含所有必要的脚本和样式。查看JSFIDLE配置面板中的
外部资源

您可以删除:

<link rel="stylesheet" href="/resources/demos/style.css">

没有必要让日期选择器工作。这只是演示的样式表


希望有用

适合我,除了样式(出于明显的原因…)什么不适合你?另外,您是否看到任何控制台错误?请注意,
/
不适用于
文件://
协议。您需要显式使用
http://
https://
define不起作用。很好用