jQuery MiniUI
标题:
datepicker赋值不成功
[打印本页]
作者:
ouyangzhiming
时间:
2013-8-12 09:22:51
标题:
datepicker赋值不成功
text = mini.decode(text);
var a = text.accountDTO;
updateAccountForm.setData(a);
//mini.get("receiveDate").setValue(onReceivableDateRenderer(a.receiveDate));
updateAccountForm.setChanged(false);
返回的数据如下
{"accountDTO":{"approver":0,"approvalDate":null,"
receivableSeq
":101998,"accountSeq":102008,"accountAmount":1.0,"receiveDate":1376123552000,"ownUnit":"123123","remark":"asdfasf","accountSerialNo":3},"contractFullName":"补录","phase":null} 页面控件如下: <td style="width:250px;">
<input style="display: none;" name="accountSeq" id="accountSeq" class="mini-textbox"/>
<input style="display: none;" name="accountSerialNo" id="serialNo" class="mini-textbox"/>
<input name="receiveDate" format="yyyy-MM-dd H:mm:ss" timeFormat="H:mm:ss" showTime="true" showTodayButton="false" showOkButton="true" showClearButton="true" id="receiveDate" class="mini-datepicker" required="true" style="width:100%;" renderer="onReceivableDateRenderer"/>
</td> 但是没给datepicker赋值? [attach]2532[/attach]
作者:
ouyangzhiming
时间:
2013-8-12 09:27:46
我明白了,毫秒数不能赋值,需转换为Date,就赋值成功
作者:
factory
时间:
2013-8-12 09:28:17
"receiveDate":1376123552000 这种格式的日期是不支持的
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2