Skip to content

turn api of weapp to promise 把微信小程序 api 转成 promise

License

Notifications You must be signed in to change notification settings

greedbell/weapp-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weapp-promise

turn api of weapp to promise 把微信小程序 api 转成 promise. 功能是从 labrador 提取得到。

getApp()

import * as wx from 'weapp-promise';
const app = wx.app;

promise

import * as wx from 'weapp-promise';
async login() {
  await wx.login();
}

Thanks

labrador

About

turn api of weapp to promise 把微信小程序 api 转成 promise

Resources

License

Stars

Watchers

Forks

Packages

No packages published