🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@yjd-test/quickapi

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yjd-test/quickapi

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

快应用与h5页面交互api h5端实现

请使用 1.1.x 以后的版本

通信协议 jsonrpc 2.0

使用方法

    // 某些情况,你可能需要引入@babel/polyfill
    // import "@babel/polyfill";
    
    import QuickApi from "@hbgj/quickapi";

    QuickApi.invoke("method", { param1: 1, param2: 2})
        .then((result) => {
            console.log(result);
        }).catch((err) => {
            console.log(err);   
        })

FAQs

Package last updated on 20 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts