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

更新web-view示例

上级 ea2512d7
...@@ -3,17 +3,19 @@ ...@@ -3,17 +3,19 @@
<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-btn-v"> <view class="uni-padding-wrap uni-common-mt">
<button type="primary" @click="back">后退</button> <view class="uni-btn-v">
</view> <button type="primary" @click="back">后退</button>
<view class="uni-btn-v"> </view>
<button type="primary" @click="forward">前进</button> <view class="uni-btn-v">
</view> <button type="primary" @click="forward">前进</button>
<view class="uni-btn-v"> </view>
<button type="primary" @click="reload">重新加载</button> <view class="uni-btn-v">
</view> <button type="primary" @click="reload">重新加载</button>
<view class="uni-btn-v"> </view>
<button type="primary" @click="stop">停止加载</button> <view class="uni-btn-v">
<button type="primary" @click="stop">停止加载</button>
</view>
</view> </view>
</view> </view>
</template> </template>
......
...@@ -3,17 +3,19 @@ ...@@ -3,17 +3,19 @@
<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-btn-v"> <view class="uni-padding-wrap uni-common-mt">
<button type="primary" @click="back">后退</button> <view class="uni-btn-v">
</view> <button type="primary" @click="back">后退</button>
<view class="uni-btn-v"> </view>
<button type="primary" @click="forward">前进</button> <view class="uni-btn-v">
</view> <button type="primary" @click="forward">前进</button>
<view class="uni-btn-v"> </view>
<button type="primary" @click="reload">重新加载</button> <view class="uni-btn-v">
</view> <button type="primary" @click="reload">重新加载</button>
<view class="uni-btn-v"> </view>
<button type="primary" @click="stop">停止加载</button> <view class="uni-btn-v">
<button type="primary" @click="stop">停止加载</button>
</view>
</view> </view>
</view> </view>
</template> </template>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册