-1
$('.active-per').click(function() {
var text = $(this).data('value');
$('.active-per').removeClass('active');
if (text == "t") {
$(this).addClass("active");
$.post("percentage.php", {
'text': text
}, function (data) {});
}
else if (text == "n") {
$(this).addClass("active");
$.post("percentage.php", {
'text': text
}, function (data) {});
}
else if (text == "c") {
$(this).addClass("active");
$.post("percentage.php", {
'text': text
}, function (data) {});
}
else if (text == "r") {
$(this).addClass("active");
$.post("percentage.php", {
'text': text
}, function (data) {});
}
window.location.reload();
});
我需要刷新我的網頁後,才POST請求已經done.But如果我做這樣的不happening.I可以得到的,更變量後我刷新後,已將如何在發送後數據後重新加載。刷新後的請求已經完成後才