标签:form type segment rod lan save post logs tar
方法是在{}中添加字段 key-value 一一对应,如下:
var data = $.param({‘state‘: state}) + ‘&‘ + $(‘#desProForm‘).serialize();
具体事例:
function saveProDes() { var data = $.param({‘state‘: state}) + ‘&‘ + $(‘#desProForm‘).serialize(); $.ajax({ type: "post", url: "savePro.do", data: data, success: function (data) { } }); }
参考:https://segmentfault.com/q/1010000002471698
标签:form type segment rod lan save post logs tar
原文地址:http://www.cnblogs.com/eoooxy/p/6341609.html