Don't say much, just look at the code
<! DOCTYPE html>$ (function () {var opt={preset:' Date ',//DateTheme: ' Sense-ui ',//Skin StyleDisplay: ' Modal ',//display ModeMode: ' Scroller ',//Date Selection ModeDateFormat: ' Yy-mm-dd ',//Date FormatSetText: ' OK ',//Confirm button NameCanceltext: ' Cancel ',//Cancel button name meDateOrder: ' YYMMDD ',//Date arrangement format in panelDaytext: ' Day ', Monthtext: ' Month ', Yeartext: ' Year ',//panel of the month and day textendyear:2020//End Year }; $("#scroller"). Mobiscroll (opt). Date (opt); //before the share of the group to send the wrong. I remember writing one before, I guess I lost it. Now rewrite one. and refine it, the following comment section is the above parameter can be replaced by changing its style//hope to study the plug-in friends plus my personal QQ can also, I also built a group of 291464597 Welcome to the group Exchange. Ha ha. This isn't an advertisement. //Direct Write parameter method//$ ("#scroller"). Mobiscroll (opt). Date (); //shorthand for: $ ("#scroller"). Mobiscroll ({preset: ' date '}); //The specific parameters are defined as follows//{ //preset: ' Date ',//Date type--datatime,//theme: ' iOS ',//Skin Other parameters "Android-ics Light" "Android-ics" "ios" "JQM" "Sense-ui" "Sense-ui" "Sense-ui "//"WP Light" "WP"//mode: "Scroller",//operation mode "Scroller" "Clickpick" "Mixed "//display: ' Bubble ',//display Party "modal" "inline" "bubble" "Top" "Bottom"//dateformat: ' Yyyy-mm-dd ',//Date Format//setText: ' OK ',//Confirm button Name//canceltext: ' Empty ',//Cancel button name me//dateorder: ' YYMMDD ',//the date arrangement grid in the panel//daytext: ' Day ',//monthtext: ' Month ',//Yeartext: ' Year ',//panel of the month and day text//startyear: (New Date ()). getFullYear (),//Start Year//endyear: (New Date ()). getFullYear () + 9,//End Year//Shownow:true,//nowtext: "Tomorrow",// //Showonfocus:false,//height:45,//width:90,//Rows:3}}); </script>parents, think the date interface is not beautiful, look at the code. I have written a specific comment on each parameter. I can not understand, I have no way. </body>
Plugin documentation Reference Address: https://docs.mobiscroll.com/2-5-2/calendar#opt-marked
Attached code:
Mobiscroll-2.5.2-increasedchinesesupport.zip
Plugindatetime.zip
jquery Mobile End Date Plugin