Using the MUI project template, preview with app view, this project needs to run tests on the real machine.
1<! DOCTYPE html>234<meta charset= "Utf-8" >5<meta name= "viewport" content= "width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1, User-scalable=no "/>6<title></title>7<script src= "Js/mui.min.js" ></script>8<link href= "Css/mui.min.css" rel= "stylesheet"/>9<script type= "Text/javascript" charset= "Utf-8" >Ten mui.init (); One</script> A -<body> - the<a class= "Mui-action-back mui-icon mui-icon-left-nav mui-pull-left" ></a> -<H1 class= "Mui-title" > Clock effects - -<div class= "Mui-content" > +<div style= "padding:20px;" > -<button type= "button" onclick= "Showdate ();" > Get Dates </button> +<button type= "button" onclick= "ShowTime ();" > Get Time </button> A</div> at</div> -</body> -<script type= "Text/javascript" > - functionshowdate () { - varDdate =NewDate (); -Ddate.setfullyear (2018,3,8); in varMinDate =NewDate (); -Mindate.setfullyear (2010,1,1); to varMaxDate =NewDate (); +Maxdate.setfullyear (2020,12,31); - the Plus.nativeUI.pickDate ( * function(e) { $ varD =e.date;Panax NotoginsengMui.toast (' The date you selected is: ' +d.getfullyear () + '-"+ (D.getmonth () +1) +"-"+d.getdate ()); - }, the function(e) { +Mui.toast (' You have no choice '); A }, the { +Title: ' Please select Date ', - Date:ddate, $ Mindate:mindate, $ maxdate:maxdate - } - ); the } - functionShowTime () {Wuyi varMyDate =NewDate (); the varh =mydate.gethours (); - varMin =mydate.getminutes (); Wu varDTime =NewDate (); - dtime.sethours (h,min); About $Plus.nativeUI.pickTime (function(e) { - varD =e.date; -Mui.toast ("The time you choose is:" +d.gethours () + ":" +d.getminutes ()); -},function(e) { AMui.toast ("You don't have time to choose"); + },{ theTitle: "Please select Time", -Is24hour:true, $ Time:dtime the }); the } the</script> theMobile Web date and clock settings