ajax请求
post传参
jQuery.ajax({ url: "${ctx}/onekey/listAll", type: "post", data: {id: '0'}, dataType: "json", success: function (msg) { alert(msg); }, error: function (XMLHttpRequest, textStatus, errorThrown) { alert(XMLHttpRequest.status); alert(XMLHttpRequest.readyState); alert(textStatus); }, complete: function (XMLHttpRequest, textStatus) { this; // 调用本次AJAX请求时传递的options参数 } })