From 0bd510b13d24b9e8796fb76d6d8791fc45c01c88 Mon Sep 17 00:00:00 2001 From: hbcui1984 Date: Tue, 30 Oct 2018 12:12:30 +0800 Subject: [PATCH] =?UTF-8?q?hello=20uni-app=20=E6=96=B0=E5=A2=9E=20web-view?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8A=A0=E8=BD=BD=E6=9C=AC=E5=9C=B0html?= =?UTF-8?q?=E7=9A=84=E7=A4=BA=E4=BE=8B=EF=BC=88=E4=BB=85App=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E7=94=9F=E6=95=88=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/hello-uniapp/hybrid/html/local.html | 72 +++++++++++++++++++ .../web-view-local/web-view-local.vue | 13 ++++ 2 files changed, 85 insertions(+) create mode 100644 examples/hello-uniapp/hybrid/html/local.html create mode 100644 examples/hello-uniapp/platforms/app-plus/web-view-local/web-view-local.vue diff --git a/examples/hello-uniapp/hybrid/html/local.html b/examples/hello-uniapp/hybrid/html/local.html new file mode 100644 index 000000000..05578cee1 --- /dev/null +++ b/examples/hello-uniapp/hybrid/html/local.html @@ -0,0 +1,72 @@ + + + + + + local web-view + + + +

web-view 组件加载本地 html 示例,仅在 App 环境下生效。点击下列按钮,跳转至其它页面。

+
+ + + + + +
+ + + + + diff --git a/examples/hello-uniapp/platforms/app-plus/web-view-local/web-view-local.vue b/examples/hello-uniapp/platforms/app-plus/web-view-local/web-view-local.vue new file mode 100644 index 000000000..1ac818a39 --- /dev/null +++ b/examples/hello-uniapp/platforms/app-plus/web-view-local/web-view-local.vue @@ -0,0 +1,13 @@ + + + + + -- GitLab