我需要将变量“x”传递给 php,但我不知道如何传递。(我是 html 的新手。如果您需要更多信息,请告诉我。THX :D )
function functionT() {
swal({
title: "For help",
text: "Write your phone number here and we will call you:",
type: "input",
showCancelButton: true,
closeOnConfirm: false,
animation: "slide-from-top",
inputPlaceholder: "ex: 0711342647"
},
function(inputValue) {
if (inputValue === false) return false;
if (inputValue === "") {
swal.showInputError("Try again");
return false
}
x = inputValue;
swal("", "You were added on our list: " + x, "success");
});
}
不负相思意
哈士奇WWW