typed we app
1.0.0
再見,感謝所有貢獻者
WeApp API 的 TypeScript 聲明文件
安裝了npm
npm install typed-we-app --save-dev
安裝了typings
typings install github:Emeryao/typed-we-app -SG
或在此處獲取聲明文件並將其包含到您的專案中
基於WeApp官方API文檔
微信Web開發工具版本1.01.1712150
WAService.js 版本1.7.0
wx . request ( {
url : 'request/url' ,
success : ( res ) => {
console . log ( res . data ) ;
}
} ) ;
let ctx = wx . createCanvasContext ( ) ;
ctx . fillText ( 'hello' , 0 , 0 ) ;
let actions = ctx . getActions ( ) ;
wx . drawCanvas ( {
canvasId : 'canvas-id' ,
actions
} ) ;
wx . getBLEDeviceServices ( {
deviceId : '' ,
success : ( res ) => {
console . log ( res . services [ 0 ] . uuid ) ;
} ,
} ) ;
2019.05.19