📅  最后修改于: 2022-03-11 15:02:35.842000             🧑  作者: Mango
var myVar = "test";
$.ajax({
url: "test.php",
type: "POST",
data:{"myData":myVar}
}).done(function(data) {
console.log(data);
});