dijit.form.DateTextBox

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>mixin</title>
		<style type="text/css">
			@import "dojo/resources/dojo.css";
			@import "dijit/themes/tundra/tundra.css";
		</style>
		<meta name="author" content="zhou" />
		<script src= "dojo/dojo.js" data-dojo-config="isDebug: true, async: true,parseOnload:true"></script>
		<script language="JavaScript" src= "test.js"></script>
	</head>
	<body class="tundra">
		<div id = "stateSelect"></div>
		<div id="test"></div>
		
	</body>
</html>
dojo.require("dojo.parser");
dojo.require("dojo.data.ItemFileReadStore");
dojo.require("dijit.form.FilteringSelect");
dojo.require("dijit.form.DateTextBox");

//dojo.addOnLoad()
var store = new dojo.data.ItemFileReadStore({
	url : "abc.json"
});

dojo.ready(function() {
	var filteringSelect = new dijit.form.FilteringSelect({
		store : store,
	}, "stateSelect");
});
dojo.ready(function() {
	var date = new dijit.form.DateTextBox({
	promptMessage:"mm/dd/yyyy",
	invalidMessage:"Invalid date. Use mm/dd/yyyy format."
	}, "test");
});
   

你可能感兴趣的:(Date)