封装ajax

2018-05-29  本文已影响0人  岳小弟

/* 封装ajax函数

ajax({
method: 'POST',
url: 'test.php',
data: {
name1: 'value1',
name2: 'value2'
},
success: function (response) {
console.log(response);
}
});

上一篇 下一篇

猜你喜欢

热点阅读