Description from extension meta
YApi 跨域请求
Description from store
A extension that gives the html page cross-domain request capability.
API: crossRequest( options )
Example:
crossRequest({
url: 'http://caibaojian.com/ajax-jsonp.html';,
method: 'GET',
success: function(res, header){
}
})
crossRequest({
url: 'http://127.0.0.1:3000/api';,
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
data: {
a: 1,
b: 2,
c: {
t: 1
}
},
success: function (res) {
console.log(arguments)
}
})
Latest reviews
- (2023-07-05) Grant: 可以
- (2021-06-16) 春生: 好用
- (2020-12-28) Jake: 好用
Statistics
Installs
5,901
history
Category
Rating
5.0 (3 votes)
Last update / version
2020-12-19 / 3.1
Listing languages