这样就可以直接通过 ajax 发送
$.ajax({ type: "POST", url: " ~~~~~~~~~~~~ ", data: data, dataType: "json", success: function(msg){ console.log(msg) } });