ether-polyfill-js

0.0.7 • Public • Published

ether-polyfill-js

http://wiki.caijj.net/pages/viewpage.action?pageId=95922746

Example Usage

npm install --save ether-polyfill-js

import { jumpTo, shareTo, Loading, Toast } from 'ether-polyfill-js';

 const onclick = function () {
    jumpTo('http://www.baidu.com?search=1');
  };

  const onShare = function () {
    shareTo({ sharePlatform: 'WeChat' });
  };

  const onLoading = function () {
    Loading.show('加载中');

    setTimeout(() => {
      Loading.hide();
    }, 5000);
  };

  // the third parameter should be greater than 1000
  const onToast = () => {
    Toast.info('密码错误', '剩余4次机会哦', 1000);
  };
    

Dependencies (0)

    Dev Dependencies (17)

    Package Sidebar

    Install

    npm i ether-polyfill-js

    Weekly Downloads

    8

    Version

    0.0.7

    License

    ISC

    Unpacked Size

    123 kB

    Total Files

    27

    Last publish

    Collaborators

    • qqxu10