保存数据到服务器,成功时显示信息。
$.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } });
[jQuery] 通过ajax保存到服务器,成功显示信息.
原文:https://www.cnblogs.com/zienzir/p/9151831.html