【发布时间】:2015-12-19 15:45:03
【问题描述】:
您好,谁能告诉我为什么下面的 jquery mobile datepicker 不起作用,因为我直接从 http://jqueryui.com/datepicker/ 复制了以下是我的问题的屏幕截图。它只显示日期选择器的文本字段。最初我以为是浏览器问题,但它不适用于任何浏览器,还包括我目前使用的 phonegap 平台。Example of the problem
<!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.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/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>
【问题讨论】:
标签: javascript jquery cordova jquery-ui datepicker