dream-jsbridge

jsbridge

Usage no npm install needed!

<script type="module">
  import dreamJsbridge from 'https://cdn.skypack.dev/dream-jsbridge';
</script>

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);
  }
});