实现功能:
1、起止日期大小判断;2、自动填充天数和小时;
使用的方法:
datetimebox-onHidePanel/getValue/setValue
numberbox-change/getValue
timeDiff()-时间比较
Date.prototype.DateDiff-计算日期时间段,可传入两个参数,第一个参数是返回日期单位(y/m/d/h..),第二个参数是日期(string)
注意:datetimebox尽量不使用change,IE11浏览器会多次调用timeDiff,导致浏览器崩溃
另附:
easyUI框架的API:http://www.jeasyui.com/documentation/index.php#