This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * areaSelector | |
| * @param areaContainer 容器id | |
| * @param selectedTxt 显示名称控件id | |
| * @param selectedVal 显示值控件id | |
| */ | |
| function areaSelect(areaContainer, selectedTxt, selectedVal) { | |
| var txtObj = $('#' + selectedTxt); | |
| var valObj = $('#' + selectedVal); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function(){ | |
| //代码必须放到页面加载完成函数中执行 | |
| var conf = $.datepicker.regional['zh-CN']; | |
| //时间输入框内值变化时触发该事件 | |
| conf.onSelect = function(dateText, inst) { | |
| //TODO | |
| console.log(dateText,inst); | |
| }; | |
| $('#datepicker').datetimepicker(conf); | |
| }); |