https://github.com/ch563/ajax
ajax封装
https://github.com/ch563/ajax
ajax
Last synced: 6 months ago
JSON representation
ajax封装
- Host: GitHub
- URL: https://github.com/ch563/ajax
- Owner: CH563
- Created: 2018-02-24T08:00:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T14:43:43.000Z (about 8 years ago)
- Last Synced: 2025-04-04T21:44:21.518Z (12 months ago)
- Topics: ajax
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ajax原生方法封装
运行示例
```javascript
sendAjax({
url: 'url',
type: 'GET',
data: {
name: 'name',
age: '23'
},
dataType: 'json',
async: false,
success: function (res) {
console.log(res)
},
fail: function (err, status) {
console.log(err)
console.log('状态码为:' + status)
}
})
```