WdatePicker改变事件触发优化
<input name="submitDate" id="pieYear" type="text" readonly="readonly" maxlength="20" style="width: 70px;float: right;" class="input-medium Wdate " οnchange="recountPie();" οnclick="WdatePicker({dateFmt:'yyyy',isShowClear:false,onpicked:function(dp){$dp.$('pieYear').blur();}});"/>
如上,使用onpicked来绑定blur事件,就会在选择日期后自动触发onchangge事件
$dp.$('time').value="2017"//设置初始值为2017
var time = $dp.$('time').value;//获取值