jQuery MiniUI

标题: miniui datepicker为啥提交的是formvalue而不是value [打印本页]

作者: gundamboy    时间: 2017-11-2 14:52:55     标题: miniui datepicker为啥提交的是formvalue而不是value

本帖最后由 gundamboy 于 2017-11-2 15:05 编辑

format和timeformat纯保持默认。
后台提交出来的日期就是2017-11-02 00:00:00
分别输出getValue和getFormValue,发现getValue是2017-11-02,getFormValue就是2017-11-02 00:00:00。
自己查到了,getData(true)


作者: felt    时间: 2017-11-2 15:34:57

这个form的api,你传递了第一个参数true,那么时间就按你显示的字符串格式获取。
getData(formatter, deep)        
formatter:Boolean。默认false。设置true,获取的日期格式是"2010-11-12"字符串。




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2