let app = getApp()
// page with webview
Page({
data: {
src: '',
},
onShow(options) {
const host = "http://{siteUrl}/"
this.setData({
src: `${host}?${app.sr.getInfo()}`
})
}
})
getInfo()
获取小程序SDK状态信息,返回 String
Warning
|
使用在 webview 内嵌页的小程序之中,可以联通会话状态
|
Copyright © 1998-2019 Tencent. All Rights Reserved.