ftl: <td class="wt40">時間</td> <td class="wt50">${(shiptimeFinish.prepayordertime?string('yyyy-MM-dd HH:mm:ss'))!}</td> </tr> mui:
mui("#choosedate1")[0].addEventListener("tap",function () { var _self = this; if(_self.picker) { _self.picker.show(function (rs) { _self.value = rs.text; _self.picker.dispose(); _self.picker = null; }); } else { var optionsJson = this.getAttribute('data-options') || '{}'; var options = JSON.parse(optionsJson); var id = this.getAttribute('id'); _self.picker = new $.DtPicker(options); _self.picker.show(function(rs) { _self.value = rs.text; _self.picker.dispose(); _self.picker = null; }); } });
獲取值:
shiptimeReview.advanceTime = $$("#choosedate1").val()+":00";
展示: