如何使用原生js实现ajax请求
如何使用原生js实现ajax请求
日期:2021-07-22 02:23:38 人气:1
$.ajax({
type: "GET",//post
url: "服务器地址",
data: {username:$("#username").val(), content:$("#content").val()},
dataType: "json",
success: function(data){
console.log(d
type: "GET",//post
url: "服务器地址",
data: {username:$("#username").val(), content:$("#content").val()},
dataType: "json",
success: function(data){
console.log(d