dingyong0214 / uni.webview.js Goto Github PK
View Code? Open in Web Editor NEW使用uni-app开发的H5网页,嵌套在uni-app中,可互相通信。兼容微信小程序
使用uni-app开发的H5网页,嵌套在uni-app中,可互相通信。兼容微信小程序
android:webview调用uniapp api表现正常,调用getEnv方法读环境为plus
iOS:webview调用uniapp api时灵时不灵(第一次装app好像正常,后续关了再打开就不行),调用getEnv方法读环境为h5
// #ifdef APP-PLUS
const tui = require('@/static/js/uni.webview.js')
Vue.prototype.$uni = tui
// #endif
在app基座内报错
reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: Cannot read property 'jWeixin' of undefined
我使用uni.webview.1.5.2.js时,H5里跳转到app,但跳转还是在H5里跳转。使用了这个项目中的uni.webview.js后,就好使了。
大佬,可以说明一下uni.webview.js如何修改的吗
h5页面
this.tui.webView.postMessage({
data: {
action: res.data
}
})
小程序@message
事件没办法读取到值
postMessage传参数不能触发web-view里的message应该怎么处理呀
HBuildX 3.1.18
iPhone6
iOS版本12.5.1
现象:
const tui = require("@/static/js/uni.webview.js")
Vue.prototype.tui = tui
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.