Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Dojodijit.form.DateTextBox小部件。我的客户希望将日期显示为dd-MMM-yyyy(13-Dec-2012)。这不是问题。但是,他希望能够使用键盘使用ddMMyyyy格式输入条目。有人知道怎么做吗?
dijit.form.DateTextBox
dd-MMM-yyyy
ddMMyyyy
如何在 instaciationg 时设置类似的constraints-property :dijit.form.DateTextBox
constraints
var dateTextBox = new dijit.form.DateTextBox({ value: new Date(), // or what ever constraints: {datePattern: 'ddMMyyyy'} });