window.getBasicAjax = function (url, data, success, error) {
try {
$(function () {
$.ajax({
type: 'POST',
url: url,
data: data,
cache: false,
async: true,
success: success,
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.responseText);
error;
}
});
});
} catch (e) {
}
}
文章標籤
全站熱搜