<scriptType="Text/javascript">
function Showdate () {
var ddate = new Date ();
Ddate.setfullyear (2016,10,24);
var mindate = new Date ();
Mindate.setfullyear (1950,2,3);
var maxdate = new Date ();
Maxdate.setfullyear (2040, 12, 1);
Plus.nativeUI.pickDate (
Function (e) {
var d = e.date;
Mui.toast (' Xu Wenrong selected date is: ' + d.getfullyear () + '-' + (D.getmonth () + 1) + '-' + d.getdate ());
},
Function (e) {
Mui.toast (' Xu Wenrong not selected date ');
}, {
Title: ' Xu Wenrong Select Date ', < span class= "LF" >
Date:ddate,
Mindate:mindate,
Maxdate:maxdate
}
)
}< span class= "LF" >
</script>
This time-date control can only be seen on the phone. Connect the phone on the Hbuilder. Then you can see it on your phone. You can click on the mobile phone, not the phone side cannot click, also can't see. This hbuilder calls the native H5 in the MUI framework and cannot be displayed on the browser
MUI time date control (cannot be viewed on the browser, can be clicked on the phone side)