<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="320">
<title>Hello H5+</title>
<link rel="stylesheet" type="text/css" href="res/doc.css" charset="utf-8">
<link rel="stylesheet" type="text/css" href="res/prettify.sons.css" charset="utf-8">
<script type="text/javascript" src="res/doc.js" charset="utf-8"></script><script type="text/javascript" src="res/prettify.js" charset="utf-8"></script>
</head>
<body><div id="content" class="content">
<h1><a name="plus.webview">webview</a></h1>
<p>Webview模块管理应用窗口界面,实现多窗口的逻辑控制管理操作。通过plus.webview可获取应用界面管理对象。</p>
<h2>方法:</h2>
<ul>
<li>
<a href="#plus.webview.all">all</a>: 获取所有Webview窗口</li>
<li>
<a href="#plus.webview.close">close</a>: 关闭Webview窗口</li>
<li>
<a href="#plus.webview.create">create</a>: 创建新的Webview窗口</li>
<li>
<a href="#plus.webview.currentWebview">currentWebview</a>: 获取当前窗口的WebviewObject对象</li>
<li>
<a href="#plus.webview.getDisplayWebview">getDisplayWebview</a>: 获取屏幕所有可视的Webview窗口</li>
<li>
<a href="#plus.webview.getWebviewById">getWebviewById</a>: 查找指定标识的WebviewObject窗口</li>
<li>
<a href="#plus.webview.getLaunchWebview">getLaunchWebview</a>: 获取应用首页WebviewObject窗口对象</li>
<li>
<a href="#plus.webview.getSecondWebview">getSecondWebview</a>: 获取应用第二个首页WebviewObject窗口对象</li>
<li>
<a href="#plus.webview.getTopWebview">getTopWebview</a>: 获取应用显示栈顶的WebviewObject窗口对象</li>
<li>
<a href="#plus.webview.hide">hide</a>: 隐藏Webview窗口</li>
<li>
<a href="#plus.webview.open">open</a>: 创建并打开Webview窗口</li>
<li>
<a href="#plus.webview.prefetchURL">prefetchURL</a>: 预载网络页面</li>
<li>
<a href="#plus.webview.prefetchURLs">prefetchURLs</a>: 预载网络页面(多个地址)</li>
<li>
<a href="#plus.webview.show">show</a>: 显示Webview窗口</li>
<li>
<a href="#plus.webview.startAnimation">startAnimation</a>: Webview窗口组合动画</li>
<li>
<a href="#plus.webview.defaultHardwareAccelerated">defaultHardwareAccelerated</a>: 获取Webview默认是否开启硬件加速</li>
</ul>
<h2>对象:</h2>
<ul>
<li>
<a href="#plus.webview.AnimationTypeShow">AnimationTypeShow</a>: 一组用于定义页面或控件显示动画效果</li>
<li>
<a href="#plus.webview.AnimationTypeClose">AnimationTypeClose</a>: 一组用于定义页面或控件关闭的动画效果</li>
<li>
<a href="#plus.webview.WebviewObject">WebviewObject</a>: Webview窗口对象,用于操作加载HTML页面的窗口</li>
<li>
<a href="#plus.webview.WebviewAnimationOptions">WebviewAnimationOptions</a>: Webview窗口动画参数</li>
<li>
<a href="#plus.webview.WebviewAnimationStyles">WebviewAnimationStyles</a>: Webview窗口动画样式</li>
<li>
<a href="#plus.webview.WebviewBounceStyle">WebviewBounceStyle</a>: Webview窗口回弹样式</li>
<li>
<a href="#plus.webview.WebviewContentAnimationOptions">WebviewContentAnimationOptions</a>: Webview窗口内容动画参数</li>
<li>
<a href="#plus.webview.WebviewDock">WebviewDock</a>: 原生控件在窗口中停靠的方式</li>
<li>
<a href="#plus.webview.WebviewDragEvent">WebviewDragEvent</a>: Webview窗口滑动事件数据</li>
<li>
<a href="#plus.webview.WebviewDragOptions">WebviewDragOptions</a>: 窗口手势操作参数</li>
<li>
<a href="#plus.webview.WebviewDragOtherViewOptions">WebviewDragOtherViewOptions</a>: 手势操作关联对象参数</li>
<li>
<a href="#plus.webview.WebviewDrawOptions">WebviewDrawOptions</a>: 截屏绘制操作参数</li>
<li>
<a href="#plus.webview.WebviewFavoriteOptions">WebviewFavoriteOptions</a>: 窗口收藏参数</li>
<li>
<a href="#plus.webview.WebviewLoadDataOptions">WebviewLoadDataOptions</a>: 创建加载HTML数据参数</li>
<li>
<a href="#plus.webview.WebviewShareOptions">WebviewShareOptions</a>: 窗口的分享参数</li>
<li>
<a href="#plus.webview.WebviewSubNViewStyles">WebviewSubNViewStyles</a>: 窗口原生子View控件样式</li>
<li>
<a href="#plus.webview.WebviewTitleNViewStyles">WebviewTitleNViewStyles</a>: 窗口标题栏控件样式</li>
<li>
<a href="#plus.webview.WebviewCustomButtonStyles">WebviewCustomButtonStyles</a>: 窗口标题栏自定义按钮样式</li>
<li>
<a href="#plus.webview.WebviewProgressStyles">WebviewProgressStyles</a>: 标题栏控件的进度条样式</li>
<li>
<a href="#plus.webview.WebviewSplitLineStyles">WebviewSplitLineStyles</a>: 窗口标题栏控件的分割线样式</li>
<li>
<a href="#plus.webview.WebviewEvent">WebviewEvent</a>: Webview窗口事件</li>
<li>
<a href="#plus.webview.WebviewExtraOptions">WebviewExtraOptions</a>: JSON对象,原生窗口扩展参数</li>
<li>
<a href="#plus.webview.WebviewPosition">WebviewPosition</a>: 原生控件在窗口中显示的位置</li>
<li>
<a href="#plus.webview.WebviewRefreshStyles">WebviewRefreshStyles</a>: Webview窗口下拉刷新样式</li>
<li>
<a href="#plus.webview.WebviewRenderedEventOptions">WebviewRenderedEventOptions</a>: Webview窗口rendered事件参数</li>
<li>
<a href="#plus.webview.WebviewReplaceWebApiOptions">WebviewReplaceWebApiOptions</a>: 替换H5标准API配置信息</li>
<li>
<a href="#plus.webview.WebviewStatusbarStyles">WebviewStatusbarStyles</a>: JSON对象,Webview窗口的系统状态栏区域样式</li>
<li>
<a href="#plus.webview.WebviewStyles">WebviewStyles</a>: JSON对象,Webview窗口对象的样式</li>
<li>
<a href="#plus.webview.WebviewTransform">WebviewTransform</a>: 一组用于定义页面或控件变形的属性</li>
<li>
<a href="#plus.webview.WebviewTransition">WebviewTransition</a>: 一组用于定义页面或控件转换效果的属性</li>
<li>
<a href="#plus.webview.WebviewOverrideResourceOptions">WebviewOverrideResourceOptions</a>: 拦截Webview窗口资源请求的参数</li>
<li>
<a href="#plus.webview.WebviewOverrideUrlOptions">WebviewOverrideUrlOptions</a>: 拦截Webview窗口URL请求的属性</li>
<li>
<a href="#plus.webview.WebviewListenResourceOptions">WebviewListenResourceOptions</a>: 监听Webview窗口资源加载的属性</li>
</ul>
<h2>回调方法:</h2>
<ul>
<li>
<a href="#plus.webview.BounceEventCallback">BounceEventCallback</a>: Webview窗口回弹事件的回调函数</li>
<li>
<a href="#plus.webview.EventCallback">EventCallback</a>: Webview窗口事件的回调函数</li>
<li>
<a href="#plus.webview.PopGestureCallback">PopGestureCallback</a>: Webview窗口侧滑事件的回调函数</li>
<li>
<a href="#plus.webview.HistoryQueryCallback">HistoryQueryCallback</a>: 历史记录查询的回调函数</li>
<li>
<a href="#plus.webview.ListenResourceLoadingCallback">ListenResourceLoadingCallback</a>: Webview窗口加载资源事件的回调函数</li>
<li>
<a href="#plus.webview.OverrideUrlLoadingCallback">OverrideUrlLoadingCallback</a>: Webview窗口拦截URL链接跳转的回调函数</li>
<li>
<a href="#plus.webview.TitleUpdateCallback">TitleUpdateCallback</a>: Webview窗口加载页面标题更新的回调函数</li>
<li>
<a href="#plus.webview.WebviewAnimationCallback">WebviewAnimationCallback</a>: Webview窗口组合动画回调函数</li>
<li>
<a href="#plus.webview.WebviewDragCallback">WebviewDragCallback</a>: Webview窗口滑屏操作事件回调函数</li>
<li>
<a href="#plus.webview.WebviewCustomButtonCallback">WebviewCustomButtonCallback</a>: Webview窗口标题栏上自定义按钮点击事件回调函数</li>
<li>
<a href="#plus.webview.SuccessCallback">SuccessCallback</a>: Webview窗口操作成功回调函数</li>
<li>
<a href="#plus.webview.ErrorCallback">ErrorCallback</a>: Webview窗口操作失败回调函数</li>
</ul>
<h2>权限:</h2>
<p>5+功能模块(permissions)</p>
<pre class="prettyprint linenums">
{
// ...
"permissions":{
// ...
"W
没有合适的资源?快使用搜索试试~ 我知道了~
HBuilder JS+HTML+ajax实例
共156个文件
html:110个
png:26个
jpg:7个
4星 · 超过85%的资源 需积分: 44 51 下载量 174 浏览量
2018-12-05
10:01:50
上传
评论 3
收藏 1.5MB RAR 举报
温馨提示
HBuilder JS+HTML+ajax实例 创建html5+的项目,此项目配合我的博客用
资源推荐
资源详情
资源评论
收起资源包目录
HBuilder JS+HTML+ajax实例 (156个子文件)
common.css 6KB
prettify.sons.css 2KB
doc.css 1016B
webview.html 86KB
nativeobj.html 50KB
maps.html 36KB
nativeUI.html 23KB
io.html 23KB
video.html 15KB
oauth.html 14KB
share_weixin.html 14KB
contacts.html 13KB
geolocation.html 12KB
payment.html 12KB
about.html 12KB
share.html 12KB
uploader.html 11KB
downloader.html 11KB
audio.html 10KB
gallery.html 10KB
navigator.html 10KB
zip.html 10KB
runtime.html 9KB
share_sinaweibo.html 9KB
barcode.html 9KB
share_qq.html 8KB
push.html 8KB
camera.html 8KB
gallery.html 8KB
speech.html 7KB
push.html 7KB
camera.html 7KB
file.html 7KB
njs_ios_gamecenter.html 7KB
nativeobj_animation.html 7KB
audio.html 7KB
xhr.html 6KB
index.html 6KB
runtime_launch.html 6KB
njs.html 5KB
webview_pullhead_custom.html 5KB
njs_android_shortcut.html 5KB
device.html 5KB
accelerometer.html 5KB
payment.html 5KB
key.html 5KB
nativeui_waiting.html 5KB
orientation.html 5KB
njs_efficient.html 5KB
fingerprint.html 4KB
doc.html 4KB
runtime.html 4KB
nativeui.html 4KB
orientation_compass.html 4KB
speech_custom.html 4KB
oauth.html 4KB
uploader_ret.html 4KB
events.html 4KB
maps_map.html 4KB
messaging.html 4KB
android.html 4KB
barcode.html 4KB
zip.html 4KB
device.html 4KB
share.html 3KB
statistic.html 3KB
orientation_level.html 3KB
webview.html 3KB
geolocation.html 3KB
uploader.html 3KB
video_videoplayer.html 3KB
message.html 3KB
accelerometer_shake.html 3KB
payment_iap.html 3KB
ios.html 3KB
speech.html 3KB
storage.html 3KB
barcode_scan2.html 3KB
downloader.html 3KB
webview_animation.html 3KB
proximity.html 3KB
webview_pulltorefresh.html 3KB
barcode_scan.html 3KB
xhr.html 3KB
proximity.html 3KB
cache.html 3KB
events.html 3KB
webview_embed.html 3KB
orientation.html 2KB
accelerometer.html 2KB
video_livepusher.html 2KB
webview_pullrefresh.html 2KB
webview_mask.html 2KB
maps.html 2KB
navigator.html 2KB
webview_pullrefresh_custom.html 2KB
storage.html 2KB
camera_video.html 2KB
splashscreen.html 2KB
navigator_status.html 2KB
共 156 条
- 1
- 2
资源评论
- huabing842020-08-24东西不错,可以借鉴
四道街硬汉
- 粉丝: 58
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功