提交 cedea6ef 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新web-view示例

上级 ea2512d7
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<web-view ref="web-view" class="uni-flex-item" src="/hybrid/html/local.html" @onPostMessage="onPostMessage" <web-view ref="web-view" class="uni-flex-item" src="/hybrid/html/local.html" @onPostMessage="onPostMessage"
@error="error" @loading="loading" @loaded="loaded"> @error="error" @loading="loading" @loaded="loaded">
</web-view> </web-view>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @click="back">后退</button> <button type="primary" @click="back">后退</button>
</view> </view>
...@@ -16,6 +17,7 @@ ...@@ -16,6 +17,7 @@
<button type="primary" @click="stop">停止加载</button> <button type="primary" @click="stop">停止加载</button>
</view> </view>
</view> </view>
</view>
</template> </template>
<script> <script>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<web-view ref="web-view" class="uni-flex-item" :src="src" :webview-styles="webview_styles" <web-view ref="web-view" class="uni-flex-item" :src="src" :webview-styles="webview_styles"
@onPostMessage="onPostMessage" @error="error" @loading="loading" @loaded="loaded"> @onPostMessage="onPostMessage" @error="error" @loading="loading" @loaded="loaded">
</web-view> </web-view>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-btn-v"> <view class="uni-btn-v">
<button type="primary" @click="back">后退</button> <button type="primary" @click="back">后退</button>
</view> </view>
...@@ -16,6 +17,7 @@ ...@@ -16,6 +17,7 @@
<button type="primary" @click="stop">停止加载</button> <button type="primary" @click="stop">停止加载</button>
</view> </view>
</view> </view>
</view>
</template> </template>
<script> <script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册