damonare / Ajax
ajax without jquery
Stars: ✭ 40
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Ajax
Load.js
Dynamically loading external JavaScript and CSS files
Stars: ✭ 15 (-62.5%)
Mutual labels: ajax
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (+1587.5%)
Mutual labels: ajax
Infinite Ajax Scroll
Turn your existing pagination into infinite scrolling pages with ease
Stars: ✭ 804 (+1910%)
Mutual labels: ajax
Saber
⚔️ Saber, PHP异步协程HTTP客户端 | PHP Coroutine HTTP client - Swoole Humanization Library
Stars: ✭ 866 (+2065%)
Mutual labels: ajax
Javascriptstudy
JavaScript的学习代码总结,高级特性、数据结构、设计模式、typescript、vue、angular、react、node、webpack、weex、小程序、tensorflow…,JavaScript是世界上最好的语言!
Stars: ✭ 529 (+1222.5%)
Mutual labels: ajax
Render async
render_async lets you include pages asynchronously with AJAX
Stars: ✭ 974 (+2335%)
Mutual labels: ajax
Rext
🎈A lightweight (< 5kb gzipped) and Promise-supported HTTP request library, for all browsers.
Stars: ✭ 14 (-65%)
Mutual labels: ajax
Rapid.js
An ORM-like Interface and a Router For Your API Requests
Stars: ✭ 700 (+1650%)
Mutual labels: ajax
Xhr.js
🌎 xhr.js is a library(< 2Kb) to make AJAX/HTTP requests with XMLHttpRequest.
Stars: ✭ 12 (-70%)
Mutual labels: ajax
Ssm Bookappointment
优雅整合SSM框架:SpringMVC + Spring + MyBatis(用户登陆式图书预约系统)
Stars: ✭ 666 (+1565%)
Mutual labels: ajax
Ecommerce
We're going to take you step-by-step to build a modern, fully open-source, eCommerce web application using Python, Django, Bootstrap, Javascript, and more.
Stars: ✭ 980 (+2350%)
Mutual labels: ajax
Laravel Dusk Select2
Select2.js support for the Laravel Dusk testing
Stars: ✭ 31 (-22.5%)
Mutual labels: ajax
轻量级ajax
- 单独对ajax进行了封装,轻量,方便使用。
- 如果您使用jQuery只是为了使用
$ajax()
方法的话,这个正适合您。
例:
Get请求
ajax.get(url, {
name: 'damonare',
sex: 'man'
}, function(res){
console.log(res);
}, async);
// 或
ajax.get(url, {
name: 'damonare',
sex: 'man'
success: function(res) {},
error: function(err) {}
});
POST请求
// json
ajax.post('/', {
data: {
"name": "damonare",
"age": 12
},
dataType: 'json',
contentType: 'application/json; charset=UTF-8',
success: function(res) {
console.log(res);
},
error: function(err) {
console.error(err);
}
});
// x-www-form-urlencoded
ajax.post('/', {
data: {
"name": "damonare",
"age": 12
},
dataType: 'json',
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
success: function(res) {
console.log(res);
},
error: function(err) {
console.error(err);
}
});
// form-data
ajax.post('/', {
data: formData,
dataType: 'json',
success: function(res) {
console.log(res);
},
error: function(err) {
console.error(err);
}
});
XMLHttpRequest实例对象获取
// 实例对象
ajax.post('/', {
data: {},
xhr: function(xhr) {
console.log(xhr);
}
});
同步请求(慎用)
// 实例对象
ajax.get('/', {
data: {}
}, function() {
}, false);
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].