POST
$.ajax({
type: "POST",
url: base_info.sub_url,
dataType: 'json',
data: {
action: 'addReview',
info: $('#review_info').val(),
raider_id: base_info.raider_id
},
xhrFields: { //cookie
withCredentials: true
},
crossDomain: true, //cookie
success: function (t) {
if (t.status == 1) {
//alert('您还没有登录!!!请先登录');
$(".login-box").show();
$(".login-bg").show();
} else if (t.status == 2) {
alert('评论发表成功!!!谢谢参与!!!');
$('#review_info').val('');
} else {
alert('评论发表失败!!!');
}
}
});