UNPKG
fet-block
Version:
latest (1.1.2)
1.1.2
1.1.1
1.1.0
1.0.0
fetBlock is a web h5 request hook library
fet-block
/
src
/
logic
/
tunnels
/
jsbridge
/
index.js
11 lines
(9 loc)
•
309 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ nativeXhrRequest }
from
'../../../tools/xhr.js'
// 调用 sendRequestByJsBridge 这个jsbridge发送http请求
export
function
sendRequestByJsBridge
(
reqOptions
) {
// 此处我们用原生xhr模拟
return
nativeXhrRequest
(reqOptions) }
export
function
caniuse
(
) {
return
true
}