We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
console.log("window.onJsBridgeReady = function () {") window.onJsBridgeReady = function () { console.log("window.onJsBridgeReady") JsBridge.mp.getCurrentUser({ success: data => { console.log("JsBridge.mp.getCurrentUser") console.log(data) // resolve(JSON.parse(data)) }, error: (err) => { console.log(err) // reject(err) } }) // mp.getCurrentUser().then(res=>{ // console.log("返回的东西") // console.log(res) // }) }
The text was updated successfully, but these errors were encountered:
你说 onJsBridgeReady 方法回调多次吗?还是 getCurrentUser ?前者的话可以用全局变量控制下,后者得看端上是不是多次调用了
Sorry, something went wrong.
No branches or pull requests
console.log("window.onJsBridgeReady = function () {")
window.onJsBridgeReady = function () {
console.log("window.onJsBridgeReady")
JsBridge.mp.getCurrentUser({
success: data => {
console.log("JsBridge.mp.getCurrentUser")
console.log(data)
// resolve(JSON.parse(data))
},
error: (err) => {
console.log(err)
// reject(err)
}
})
// mp.getCurrentUser().then(res=>{
// console.log("返回的东西")
// console.log(res)
// })
}
The text was updated successfully, but these errors were encountered: