JS关闭setInterval及终止AJAX请求
$(document).ready(function(){
    interval = setInterval(checkPayStatus,2000);//每2秒执行一次checkIsExist方法
});
function checkPayStatus(){
    $.ajax({
        url: "",
        data: {
            action: "status",
        },
        dataType: "json",
        success : function(data) {
            if(data['success']==true){
                window.clearInterval(interval);
            }
        },
    }
);}