README
dream-jsbridge
安装
yarn add dream-jsbridge
使用
import Bridge from 'dream-jsbridge';
Bridge.fetch({
url: 'https://xxx',
data: {
id: 'xxx'
},
success(res) {
console.log(res.data);
}
});
jsbridge
<script type="module">
import dreamJsbridge from 'https://cdn.skypack.dev/dream-jsbridge';
</script>
yarn add dream-jsbridge
import Bridge from 'dream-jsbridge';
Bridge.fetch({
url: 'https://xxx',
data: {
id: 'xxx'
},
success(res) {
console.log(res.data);
}
});