提交 a68a94bf 编写于 作者: lizhongyi_'s avatar lizhongyi_

调整webview示例

上级 58c1c9dd
......@@ -15,8 +15,12 @@
methods: {
message(event : UniWebViewMessageEvent) {
console.log(JSON.stringify(event));
let contentStr = JSON.stringify(event.detail);
<!-- #ifdef APP-IOS -->
contentStr = JSON.stringify(event.detail.data[0]);
<!-- #endif -->
uni.showModal({
content: JSON.stringify(event.detail),
content: contentStr,
showCancel: false
});
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册