保存数据到服务器,成功时显示信息。
jQuery 代码:
$.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