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")

相关推荐