Strtus2与Ajax交互JSON的日期格式设置
struts2 与 ajax 结合交互
$.ajax({ // 调用jquery的ajax方法 type : 'POST', // 设置ajax方法提交数据的形式 url : url data : parms, dataType:"json", contentType: "application/json", success : function(msg) { // 提交成功后的回调, } }); var parms = {"channelPojo":{"channelname":"合作分成","contacts":"合作分成","mobile":"合作分成","mail":"合作分成","address":"合作分成","workmode":"2","channeltype":"a","begintime":"2013-08-01 00:00:00","endtime":"2013-08-28 00:00:00","isdivide":1,"dividetype":1,"onlinecontact":"合作分成","remark":"合作分成","superiorurl":"00003000000000000000000000000000000000000000000000","juniorurl":"00004000000000000000000000000000000000000000000000","channelno":"2222","clientList":[],"pointList":[{"minsale":"110","maxsale":"150","salerebate":"10","rebatetype":"1"},{"minsale":"111","maxsale":"111","salerebate":"111","rebatetype":"1"}]}}
日期的set方法加入注解@JSON(format="yyyy-MM-dd")
相关推荐
kentrl 2020-11-10
结束数据方法的参数,该如何定义?-- 集合为自定义实体类中的结合属性,有几个实体类,改变下标就行了。<input id="add" type="button" value="新增visitor&quo
ajaxyan 2020-11-09
zndy0 2020-11-03
学留痕 2020-09-20
Richardxx 2020-11-09
learningever 2020-09-19
chongxiaocheng 2020-08-16
ajaxhe 2020-08-16
lyqdanang 2020-08-16
curiousL 2020-08-03
TONIYH 2020-07-22
时光如瑾雨微凉 2020-07-19
83510998 2020-07-18
坚持着执着 2020-07-16
jiaguoquan00 2020-07-07
李永毅 2020-07-05
坚持着执着 2020-07-05