jQuery 中post和get的使用同步操作
解决方法1:
在全局设置:
$.ajaxSetup({
async : false
});
然后再使用post或get方法
$.get("register/RegisterState", {test : 12}, function(data, status) {
if (status == "success") {
data = eval("(" + data + ")");
aDataSet = data;
alert("data is " + aDataSet);
} else {
alert("wrong");
}
});
解决方法2:
直接使用$.ajax
$.ajax({
type : "post",
url : "register/RegisterState",
data : "test=" + test,
async : false,
success : function(data){
data = eval("(" + data + ")");
aDataSet = data;
}
});
layer.prompt使文本框为空的情况下也能点击确定 用纯CSS实现的箭头的各种方法
Your article helped me a lot, is there any more related content? Thanks!
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://www.binance.com/en-NG/register?ref=JHQQKNKN