Used by the Mobiscroll date plug-in and the mobiscroll date plug-in
- Official help: https://docs.mobiscroll.com/3-0-1
<link href="${webRoot}/template/green/wap/module/member/medicinebox/statics/css/mobiscroll.css" type="text/css" rel="stylesheet" /><link href="${webRoot}/template/green/wap/module/member/medicinebox/statics/css/mobiscroll_date.css" type="text/css" rel="stylesheet" /><script src="${webRoot}/template/green/wap/module/member/medicinebox/statics/js/jquery.min.js" type="text/javascript"> </script><script src="${webRoot}/template/green/wap/module/member/medicinebox/statics/js/mobiscroll_date.js" type="text/javascript"> </script><script src="${webRoot}/template/green/wap/module/member/medicinebox/statics/js/mobiscroll.js" type="text/javascript"> </script>
<Input id = "mobiscroll_input">
Date initialization plug-inFunction initMobiscroll () {var currYear = (new Date ()). getFullYear (); var opt = {}; opt. date = {preset: 'date', onSelect: function (valueText, inst) {$ ("# validity_text "). text (valueText); $ ("# drug_effective_time_str_input "). val ($. trim (valueText);}, onBeforeShow: function (event, inst) {var validity = $. trim ($ ("# validity_text "). text ()). split ("-"); if (! IsEmpty (validity) {$ ('# mobiscroll_input '). mobiscroll ('setdate', new Date (validity [0], validity [1]-1, validity [2]) ;}}; opt. datetime = {preset: 'datetime'}; opt. time = {preset: 'time'}; opt. default = {theme: 'android-ics light', // skin style display: 'modal', // display mode: 'scroler', // Date selection mode dateFormat: 'yyyy-mm-dd', lang: 'zh ', showNow: true, nowText: "Today", startYear: currYear-50, // start year endYear: currYear + 10 // End Year}; $ ("# mobiscroll_input "). mobiscroll ($. extend (opt ['date'], opt ['default']);}