http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/f3d58bd0/cn/references/components/web.html ---------------------------------------------------------------------- diff --git a/cn/references/components/web.html b/cn/references/components/web.html deleted file mode 100644 index 8d0ed47..0000000 --- a/cn/references/components/web.html +++ /dev/null @@ -1,1416 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"> - - <title><web> | Weex</title> - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> - <meta name="description" content="&lt;web&gt;v0.5+ ä½¿ç¨ &lt;web&gt; ç»ä»¶å¨ Weex 页é¢ä¸åµå ¥ä¸å¼ ç½é¡µå 容ãsrc å±æ§ç¨æ¥æå®èµæºå°åãä½ ä¹å¯ä»¥ä½¿ç¨ webview module æ¥æ§å¶ web çè¡ä¸ºï¼æ¯å¦åè¿ãåéåéè½½ãå¯ä»¥å¨è¿éæ¥ç webview moduleã åç»ä»¶ä¸æ¯æåç»ä»¶ã ç¹æ§ src {string}ï¼æ¤ç¹æ§æå®åµå ¥ç web é¡µé¢ urlã æ ·å¼ éç¨æ ·å¼ï¼ä¸æ¯æé¨åç"> -<meta property="og:type" content="website"> -<meta property="og:title" content="<web>"> -<meta property="og:url" content="https://weex-project.io/cn/references/components/web.html"> -<meta property="og:site_name" content="Weex"> -<meta property="og:description" content="&lt;web&gt;v0.5+ ä½¿ç¨ &lt;web&gt; ç»ä»¶å¨ Weex 页é¢ä¸åµå ¥ä¸å¼ ç½é¡µå 容ãsrc å±æ§ç¨æ¥æå®èµæºå°åãä½ ä¹å¯ä»¥ä½¿ç¨ webview module æ¥æ§å¶ web çè¡ä¸ºï¼æ¯å¦åè¿ãåéåéè½½ãå¯ä»¥å¨è¿éæ¥ç webview moduleã åç»ä»¶ä¸æ¯æåç»ä»¶ã ç¹æ§ src {string}ï¼æ¤ç¹æ§æå®åµå ¥ç web é¡µé¢ urlã æ ·å¼ éç¨æ ·å¼ï¼ä¸æ¯æé¨åç"> -<meta property="og:updated_time" content="2017-04-28T02:36:21.000Z"> -<meta name="twitter:card" content="summary"> -<meta name="twitter:title" content="<web>"> -<meta name="twitter:description" content="&lt;web&gt;v0.5+ ä½¿ç¨ &lt;web&gt; ç»ä»¶å¨ Weex 页é¢ä¸åµå ¥ä¸å¼ ç½é¡µå 容ãsrc å±æ§ç¨æ¥æå®èµæºå°åãä½ ä¹å¯ä»¥ä½¿ç¨ webview module æ¥æ§å¶ web çè¡ä¸ºï¼æ¯å¦åè¿ãåéåéè½½ãå¯ä»¥å¨è¿éæ¥ç webview moduleã åç»ä»¶ä¸æ¯æåç»ä»¶ã ç¹æ§ src {string}ï¼æ¤ç¹æ§æå®åµå ¥ç web é¡µé¢ urlã æ ·å¼ éç¨æ ·å¼ï¼ä¸æ¯æé¨åç"> - - <link rel="alternate" href="/atom.xml" title="Weex" type="application/atom+xml"> - - - <link rel="icon" href="//gw.alicdn.com/tps/TB1XNqxPXXXXXcSXVXXXXXXXXXX-64-63.png"> - - - <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css"> - - <link rel="stylesheet" href="/css/style.css"> - <link rel="stylesheet" href="/css/swiper.min.css"> -</head> - -<body id="references" class="lang-cn"> - - <script> - window.PAGE_TYPE = "references"; - window.ROOT = "/" - </script> - <header id="header"> - <div class="navbar"> - <a id="logo" href="/cn/"> - <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" /> - </a> - <div class="main-nav"> - <ul class="links"> - <li><a href="/cn/guide">æç¨</a></li> - <li><a href="/cn/references">æå</a></li> - <li class="dropdown"> - <a href="javascript:;">åè</a> - <ul class="dropdown-menu subnav"> - <li> - <a href="/cn/faq.html">FAQ</a> - </li> - <li> - <a href="/cn/releasenote.html">çæ¬è¯´æ</a> - </li> - </ul> - </li> - <li class="dropdown"> - <a href="javascript:;">å·¥å ·åæå¡</a> - <ul class="dropdown-menu subnav"> - <li> - <a href="/cn/playground.html">Playground</a> - </li> - <li> - <a href="/cn/guide/tools/toolkit.html">Weex-toolkit</a> - </li> - <li> - <a href="http://dotwe.org" target="_blank">Code Snippets</a> - </li> - <li> - <a href="https://market.dotwe.org" target="_blank">Market</a> - </li> - </ul> - </li> - </ul> - <ul class="info"> - <li><a href="https://github.com/apache/incubator-weex/" target="_blank"><span class="btn-github iconfont icon-github"></span></a></li> - </ul> - <ul class="tools"> - <li> - <div class="search"> - <form id="search-form" class="search-form"> <!-- æç´¢æ¡ç¸å ³ --> - <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/> - <span class="iconfont icon-search"></span> - </form> - <div class="results-panel"> - </div> -</div> - </li> - <li> - <div class="dropdown select-lang"> - <a href="javascript:;" class="dropdown-toggle"> - Language - <span class="caret"></span> - </a> - <ul class="dropdown-menu pick-lang"> - <li> - <a href="/references/components/web.html" data-lang="en">English</a> - </li> - <li> - <a href="/cn/references/components/web.html" data-lang="zh-cn">ä¸æ</a> - </li> - </ul> - </div> - </li> - <!--<li></li>--> - </ul> - </div> - </div> - <div id="mobile-nav"> - <a id="logo" href="/cn/"> - <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" /> - </a> - <a class="btn-menu"><span class="iconfont icon-nav"></span></a> - </div> -</header> - - <div id="sidebar" class=""> - <div class="sidebar-menu"> - - <div class="search"> - <form id="search-form" class="search-form"> <!-- æç´¢æ¡ç¸å ³ --> - <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/> - <span class="iconfont icon-search"></span> - </form> - <div class="results-panel"> - </div> -</div> - - - -<div class="summary"> - <h2 class="part-title"> - - æå - - </h2> - <ul class="doc-summary"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <li> - <h3 class="chapter-title"><a href="/cn/references/index.html" class="sidebar-link ">éç¨ç¹æ§</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/ios-apis.html" class="sidebar-link ">iOS APIs</a> - </li> - - <li> - <a href="/cn/references/android-apis.html" class="sidebar-link ">Android APIs</a> - </li> - - <li> - <a href="/cn/references/html5-apis.html" class="sidebar-link ">HTML5 APIs</a> - </li> - - <li> - <a href="/cn/references/jsfm-apis.html" class="sidebar-link ">JS Framework APIs</a> - </li> - - <li> - <a href="/cn/references/common-style.html" class="sidebar-link ">éç¨æ ·å¼</a> - </li> - - <li> - <a href="/cn/references/text-style.html" class="sidebar-link ">ææ¬æ ·å¼</a> - </li> - - <li> - <a href="/cn/references/color-names.html" class="sidebar-link ">é¢è²å称å表</a> - </li> - - <li> - <a href="/cn/references/gesture.html" class="sidebar-link ">æå¿</a> - </li> - - <li> - <a href="/cn/references/path.html" class="sidebar-link ">Path (è±)</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/components/index.html" class="sidebar-link ">å 建ç»ä»¶</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/components/a.html" class="sidebar-link "><a></a> - </li> - - <li> - <a href="/cn/references/components/slider.html" class="sidebar-link "><slider></a> - </li> - - <li> - <a href="/cn/references/components/indicator.html" class="sidebar-link "><indicator></a> - </li> - - <li> - <a href="/cn/references/components/switch.html" class="sidebar-link "><switch></a> - </li> - - <li> - <a href="/cn/references/components/text.html" class="sidebar-link "><text></a> - </li> - - <li> - <a href="/cn/references/components/textarea.html" class="sidebar-link "><textarea></a> - </li> - - <li> - <a href="/cn/references/components/video.html" class="sidebar-link "><video></a> - </li> - - <li> - <a href="/cn/references/components/web.html" class="sidebar-link current "><web></a> - </li> - - <li> - <a href="/cn/references/components/div.html" class="sidebar-link "><div></a> - </li> - - <li> - <a href="/cn/references/components/image.html" class="sidebar-link "><image></a> - </li> - - <li> - <a href="/cn/references/components/input.html" class="sidebar-link "><input></a> - </li> - - <li> - <a href="/cn/references/components/list.html" class="sidebar-link "><list></a> - </li> - - <li> - <a href="/cn/references/components/cell.html" class="sidebar-link "><cell></a> - </li> - - <li> - <a href="/cn/references/components/loading.html" class="sidebar-link "><loading></a> - </li> - - <li> - <a href="/cn/references/components/refresh.html" class="sidebar-link "><refresh></a> - </li> - - <li> - <a href="/cn/references/components/scroller.html" class="sidebar-link "><scroller></a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/modules/index.html" class="sidebar-link ">å 建模å</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/modules/animation.html" class="sidebar-link ">animation</a> - </li> - - <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> - </li> - - <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> - </li> - - <li> - <a href="/cn/references/modules/clipboard.html" class="sidebar-link ">clipboard</a> - </li> - - <li> - <a href="/cn/references/modules/dom.html" class="sidebar-link ">dom</a> - </li> - - <li> - <a href="/cn/references/modules/modal.html" class="sidebar-link ">modal</a> - </li> - - <li> - <a href="/cn/references/modules/navigator.html" class="sidebar-link ">navigator</a> - </li> - - <li> - <a href="/cn/references/modules/storage.html" class="sidebar-link ">storage</a> - </li> - - <li> - <a href="/cn/references/modules/stream.html" class="sidebar-link ">stream</a> - </li> - - <li> - <a href="/cn/references/modules/webview.html" class="sidebar-link ">webview</a> - </li> - - <li> - <a href="/cn/references/modules/globalevent.html" class="sidebar-link ">globalEvent</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/unit.html" class="sidebar-link ">CSS åä½</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/common-event.html" class="sidebar-link ">éç¨äºä»¶</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/native-dom-api.html" class="sidebar-link ">Native DOM APIs</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/weex-variable.html" class="sidebar-link ">Weex å®ä¾åé</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/web-standards.html" class="sidebar-link ">Web æ å</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/js-service/index.html" class="sidebar-link ">JS Service</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/vue/index.html" class="sidebar-link ">Vue</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/vue/difference-with-web.html" class="sidebar-link ">Vue 2.x å¨ Weex å Web ä¸çå·®å¼</a> - </li> - - <li> - <a href="/cn/references/vue/difference-of-vuex.html" class="sidebar-link ">ä½¿ç¨ Vuex å vue-router</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/advanced/index.html" class="sidebar-link ">é«é¶ç¥è¯</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/advanced/extend-to-ios.html" class="sidebar-link ">iOS æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-to-android.html" class="sidebar-link ">Android æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-to-html5.html" class="sidebar-link ">HTML5 æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-jsfm.html" class="sidebar-link ">æå± JS framework</a> - </li> - - <li> - <a href="/cn/references/advanced/integrate-devtool-to-android.html" class="sidebar-link ">éæ Devtools å° Android</a> - </li> - - <li> - <a href="/cn/references/advanced/integrate-devtool-to-ios.html" class="sidebar-link ">éæ Devtools å° iOS</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/migration/index.html" class="sidebar-link ">è¿ç§»</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/platform-difference.html" class="sidebar-link ">Weex å Web å¹³å°çå·®å¼</a> - </li> - - <li> - <a href="/cn/references/migration/migration-from-weex.html" class="sidebar-link ">å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬</a> - </li> - - <li> - <a href="/cn/references/migration/difference.html" class="sidebar-link ">Weex å Vue 2.x çè¯æ³å·®å¼</a> - </li> - - </ul> - - </li> - - - - <li> - <h3 class="chapter-title"><a href="/cn/v-0.10/references/index.html" class="sidebar-link">æ§è¯æ³ææ¡£</a></h3> - </li> - - </ul> -</div> - - <a class="btn-close-sidebar iconfont icon-close"></a> - </div> -</div> - - <div class="article-wrapper page-layout"> - <div class="doc-nav"> - - - -<div class="summary"> - <h2 class="part-title"> - - æå - - </h2> - <ul class="doc-summary"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <li> - <h3 class="chapter-title"><a href="/cn/references/index.html" class="sidebar-link ">éç¨ç¹æ§</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/ios-apis.html" class="sidebar-link ">iOS APIs</a> - </li> - - <li> - <a href="/cn/references/android-apis.html" class="sidebar-link ">Android APIs</a> - </li> - - <li> - <a href="/cn/references/html5-apis.html" class="sidebar-link ">HTML5 APIs</a> - </li> - - <li> - <a href="/cn/references/jsfm-apis.html" class="sidebar-link ">JS Framework APIs</a> - </li> - - <li> - <a href="/cn/references/common-style.html" class="sidebar-link ">éç¨æ ·å¼</a> - </li> - - <li> - <a href="/cn/references/text-style.html" class="sidebar-link ">ææ¬æ ·å¼</a> - </li> - - <li> - <a href="/cn/references/color-names.html" class="sidebar-link ">é¢è²å称å表</a> - </li> - - <li> - <a href="/cn/references/gesture.html" class="sidebar-link ">æå¿</a> - </li> - - <li> - <a href="/cn/references/path.html" class="sidebar-link ">Path (è±)</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/components/index.html" class="sidebar-link ">å 建ç»ä»¶</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/components/a.html" class="sidebar-link "><a></a> - </li> - - <li> - <a href="/cn/references/components/slider.html" class="sidebar-link "><slider></a> - </li> - - <li> - <a href="/cn/references/components/indicator.html" class="sidebar-link "><indicator></a> - </li> - - <li> - <a href="/cn/references/components/switch.html" class="sidebar-link "><switch></a> - </li> - - <li> - <a href="/cn/references/components/text.html" class="sidebar-link "><text></a> - </li> - - <li> - <a href="/cn/references/components/textarea.html" class="sidebar-link "><textarea></a> - </li> - - <li> - <a href="/cn/references/components/video.html" class="sidebar-link "><video></a> - </li> - - <li> - <a href="/cn/references/components/web.html" class="sidebar-link current "><web></a> - </li> - - <li> - <a href="/cn/references/components/div.html" class="sidebar-link "><div></a> - </li> - - <li> - <a href="/cn/references/components/image.html" class="sidebar-link "><image></a> - </li> - - <li> - <a href="/cn/references/components/input.html" class="sidebar-link "><input></a> - </li> - - <li> - <a href="/cn/references/components/list.html" class="sidebar-link "><list></a> - </li> - - <li> - <a href="/cn/references/components/cell.html" class="sidebar-link "><cell></a> - </li> - - <li> - <a href="/cn/references/components/loading.html" class="sidebar-link "><loading></a> - </li> - - <li> - <a href="/cn/references/components/refresh.html" class="sidebar-link "><refresh></a> - </li> - - <li> - <a href="/cn/references/components/scroller.html" class="sidebar-link "><scroller></a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/modules/index.html" class="sidebar-link ">å 建模å</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/modules/animation.html" class="sidebar-link ">animation</a> - </li> - - <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> - </li> - - <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> - </li> - - <li> - <a href="/cn/references/modules/clipboard.html" class="sidebar-link ">clipboard</a> - </li> - - <li> - <a href="/cn/references/modules/dom.html" class="sidebar-link ">dom</a> - </li> - - <li> - <a href="/cn/references/modules/modal.html" class="sidebar-link ">modal</a> - </li> - - <li> - <a href="/cn/references/modules/navigator.html" class="sidebar-link ">navigator</a> - </li> - - <li> - <a href="/cn/references/modules/storage.html" class="sidebar-link ">storage</a> - </li> - - <li> - <a href="/cn/references/modules/stream.html" class="sidebar-link ">stream</a> - </li> - - <li> - <a href="/cn/references/modules/webview.html" class="sidebar-link ">webview</a> - </li> - - <li> - <a href="/cn/references/modules/globalevent.html" class="sidebar-link ">globalEvent</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/unit.html" class="sidebar-link ">CSS åä½</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/common-event.html" class="sidebar-link ">éç¨äºä»¶</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/native-dom-api.html" class="sidebar-link ">Native DOM APIs</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/weex-variable.html" class="sidebar-link ">Weex å®ä¾åé</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/web-standards.html" class="sidebar-link ">Web æ å</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/js-service/index.html" class="sidebar-link ">JS Service</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/vue/index.html" class="sidebar-link ">Vue</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/vue/difference-with-web.html" class="sidebar-link ">Vue 2.x å¨ Weex å Web ä¸çå·®å¼</a> - </li> - - <li> - <a href="/cn/references/vue/difference-of-vuex.html" class="sidebar-link ">ä½¿ç¨ Vuex å vue-router</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/advanced/index.html" class="sidebar-link ">é«é¶ç¥è¯</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/advanced/extend-to-ios.html" class="sidebar-link ">iOS æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-to-android.html" class="sidebar-link ">Android æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-to-html5.html" class="sidebar-link ">HTML5 æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-jsfm.html" class="sidebar-link ">æå± JS framework</a> - </li> - - <li> - <a href="/cn/references/advanced/integrate-devtool-to-android.html" class="sidebar-link ">éæ Devtools å° Android</a> - </li> - - <li> - <a href="/cn/references/advanced/integrate-devtool-to-ios.html" class="sidebar-link ">éæ Devtools å° iOS</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/migration/index.html" class="sidebar-link ">è¿ç§»</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/platform-difference.html" class="sidebar-link ">Weex å Web å¹³å°çå·®å¼</a> - </li> - - <li> - <a href="/cn/references/migration/migration-from-weex.html" class="sidebar-link ">å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬</a> - </li> - - <li> - <a href="/cn/references/migration/difference.html" class="sidebar-link ">Weex å Vue 2.x çè¯æ³å·®å¼</a> - </li> - - </ul> - - </li> - - - - <li> - <h3 class="chapter-title"><a href="/cn/v-0.10/references/index.html" class="sidebar-link">æ§è¯æ³ææ¡£</a></h3> - </li> - - </ul> -</div> - </div> - - -<article class="article article-type-references"> - <div class="article-entry" itemprop="articleBody"> - <header class="article-header"> - - - <h1 class="article-title" itemprop="name"> - <web> - </h1> - - - <time class="article-date" datetime="2017-04-28T02:36:21.000Z">Updated time: 28/04/2017</time> -</header> - <h1 id="lt-web-gt"><a href="#lt-web-gt" class="headerlink" title="<web>"></a><web></h1><p><span class="weex-version">v0.5+</span></p> -<p>ä½¿ç¨ <code><web></code> ç»ä»¶å¨ Weex 页é¢ä¸åµå ¥ä¸å¼ ç½é¡µå 容ã<code>src</code> å±æ§ç¨æ¥æå®èµæºå°åãä½ ä¹å¯ä»¥ä½¿ç¨ <code>webview module</code> æ¥æ§å¶ <code>web</code> çè¡ä¸ºï¼æ¯å¦åè¿ãåéåéè½½ãå¯ä»¥å¨è¿éæ¥ç <a href="../modules/webview.html"><code>webview</code> module</a>ã</p> -<h2 id="åç»ä»¶"><a href="#åç»ä»¶" class="headerlink" title="åç»ä»¶"></a>åç»ä»¶</h2><p>ä¸æ¯æåç»ä»¶ã</p> -<h2 id="ç¹æ§"><a href="#ç¹æ§" class="headerlink" title="ç¹æ§"></a>ç¹æ§</h2><ul> -<li><code>src {string}</code>ï¼æ¤ç¹æ§æå®åµå ¥ç web é¡µé¢ urlã</li> -</ul> -<h2 id="æ ·å¼"><a href="#æ ·å¼" class="headerlink" title="æ ·å¼"></a>æ ·å¼</h2><ul> -<li><p>éç¨æ ·å¼ï¼ä¸æ¯æé¨åç模åæ ·å¼ï¼æ¯æå表å¦ä¸ï¼</p> -<ul> -<li><p><code>width</code></p> -<p>ç»ä»¶ç宽度ï¼é»è®¤å¼æ¯0ãè¿ä¸ªæ ·å¼å®ä¹å¿ é¡»æå®æ°å¼ã</p> -</li> -<li><p><code>height</code></p> -<p>ç»ä»¶çé«åº¦ï¼é»è®¤å¼æ¯0ãè¿ä¸ªæ ·å¼å®ä¹å¿ é¡»æå®æ°å¼ã</p> -</li> -<li><p><code>flexbox</code> å¸å±</p> -</li> -<li><code>position</code></li> -<li><code>opacity</code></li> -<li><code>background-color</code></li> -</ul> -<p>æ¥ç <a href="../common-style.html">ç»ä»¶éç¨æ ·å¼</a></p> -</li> -</ul> -<h2 id="äºä»¶"><a href="#äºä»¶" class="headerlink" title="äºä»¶"></a>äºä»¶</h2><ul> -<li><code>pagestart</code>: <code><web></code> ç»ä»¶å¼å§å è½½æ¶åéæ¤äºä»¶æ¶æ¯ã</li> -<li><code>pagefinish</code>: <code><web></code> ç»ä»¶å®æå è½½æ¶åéæ¤äºä»¶æ¶æ¯ã</li> -<li><p><code>error</code>: å¦æ <code><web></code> ç»ä»¶å è½½åºç°é误ï¼ä¼åéæ¤äºä»¶æ¶æ¯ã</p> -</li> -<li><p>éç¨äºä»¶</p> -<p>æ¯æ以ä¸éç¨äºä»¶ï¼</p> -<ul> -<li><code>appear</code></li> -<li><code>disappear</code></li> -</ul> -<p>æ¥ç <a href="../common-event.html">éç¨äºä»¶</a></p> -</li> -</ul> -<p><strong>注æï¼</strong></p> -<p>ä¸æ¯æ <code>click</code> äºä»¶ã</p> -<h2 id="示ä¾"><a href="#示ä¾" class="headerlink" title="示ä¾"></a>示ä¾</h2><p>æ们ç¨ä¸ä¸ªç®ææµè§å¨ç¤ºä¾ï¼æ¥å±ç¤ºå¦ä½ä½¿ç¨ <code><web></code> ç»ä»¶å <code>webview</code> moduleã æ¥ç <a href="../modules/webview.html">webview module</a>ã</p> -<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag"><<span class="name">template</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">class</span>=<span class="string">"wrapper"</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">class</span>=<span class="string">"group"</span>></span></div><div class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">class</span>=<span class="string">"input"</span> <span class="attr">v-model</span>=<span class="string">"value"</span> <span class="attr">ref</span>=<span class="string">"input"</span> <span class="attr">type</span>=<span class="string">"url"</span> <span class="attr">autofocus</span>=<span class="string">"false"</span>></span><span class="tag"></<span class="name">input</span>></span></div><div class="line"> <spa n class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">class</span>=<span class="string">"group"</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"button"</span> @<span class="attr">click</span>=<span class="string">"loadURL"</span>></span>LoadURL<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"><<span class="name">text</span> <span class="attr">class</span>=<span class="string">"button"</span> @<span class="attr">click</span>=<span class="string">"reload"</span>></span>reload<span class="tag"></<span class="name">text</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"> <span class="tag"><<span class="name">web</span> <sp an class="attr">ref</span>=<span class="string">"webview"</span> <span class="attr">:src</span>=<span class="string">"url"</span> <span class="attr">class</span>=<span class="string">"webview"</span> @<span class="attr">pagestart</span>=<span class="string">"start"</span> @<span class="attr">pagefinish</span>=<span class="string">"finish"</span> @<span class="attr">error</span>=<span class="string">"error"</span>></span><span class="tag"></<span class="name">web</span>></span></div><div class="line"> <span class="tag"></<span class="name">div</span>></span></div><div class="line"><span class="tag"></<span class="name">template</span>></span></div><div class="line"></div><div class="line"><span class="tag"><<span class="name">script</span>></span><span class="javascript"></span></div><div class="line"> <span class="keyword">const</span> webview = weex.requireModule(<span class="string">'webview'</span>)</div><div class="line"> <span class="keyword">const </span> modal = weex.requireModule(<span class="string">'modal'</span>)</div><div class="line"></div><div class="line"> <span class="keyword">export</span> <span class="keyword">default</span> {</div><div class="line"> data () {</div><div class="line"> <span class="keyword">return</span> {</div><div class="line"> <span class="attr">url</span> : <span class="string">'https://m.alibaba.com'</span>,</div><div class="line"> <span class="attr">value</span>: <span class="string">'https://m.alibaba.com'</span></div><div class="line"> }</div><div class="line"> },</div><div class="line"> <span class="attr">methods</span>: {</div><div class="line"> loadURL (event) {</div><div class="line"> <span class="keyword">this</span>.url = <span class="keyword">this</span>.value</div><div class="line"> modal.toast({ <span class="attr">message</span>: <span class="string">'load url:'</span> + <span class="keyword ">this</span>.url })</div><div class="line"> setTimeout(<span class="function"><span class="params">()</span> =></span> {</div><div class="line"> <span class="built_in">console</span>.log(<span class="string">'will go back.'</span>)</div><div class="line"> modal.toast({ <span class="attr">message</span>: <span class="string">'will go back'</span> })</div><div class="line"> webview.goBack(<span class="keyword">this</span>.$refs.webview)</div><div class="line"> }, <span class="number">10000</span>)</div><div class="line"> },</div><div class="line"> reload (event) {</div><div class="line"> <span class="built_in">console</span>.log(<span class="string">'will reload webview'</span>)</div><div class="line"> modal.toast({ <span class="attr">message</span>: <span class="string">'reload'</span> })</div><div class="line"> webview.reload(<span class="keyword">this</span>.$ref s.webview)</div><div class="line"> },</div><div class="line"> start (event) {</div><div class="line"> <span class="built_in">console</span>.log(<span class="string">'pagestart'</span>, event)</div><div class="line"> modal.toast({ <span class="attr">message</span>: <span class="string">'pagestart'</span> })</div><div class="line"> },</div><div class="line"> finish (event) {</div><div class="line"> <span class="built_in">console</span>.log(<span class="string">'pagefinish'</span>, event)</div><div class="line"> modal.toast({ <span class="attr">message</span>: <span class="string">'pagefinish'</span> })</div><div class="line"> },</div><div class="line"> error (event) {</div><div class="line"> <span class="built_in">console</span>.log(<span class="string">'error'</span>, event)</div><div class="line"> modal.toast({ <span class="attr">message</span>: <span class= "string">'error'</span> })</div><div class="line"> }</div><div class="line"> }</div><div class="line"> }</div><div class="line"><span class="tag"></<span class="name">script</span>></span></div><div class="line"></div><div class="line"><span class="tag"><<span class="name">style</span> <span class="attr">scoped</span>></span><span class="css"></span></div><div class="line"> <span class="selector-class">.group</span> {</div><div class="line"> <span class="attribute">flex-direction</span>: row;</div><div class="line"> <span class="attribute">justify-content</span>: space-around;</div><div class="line"> <span class="attribute">margin-top</span>: <span class="number">20px</span>;</div><div class="line"> }</div><div class="line"> <span class="selector-class">.input</span> {</div><div class="line"> <span class="attribute">width</span>: <span class="number">600px</span>;</div><div class="line"> <span class="attribute ">font-size</span>: <span class="number">36px</span>;</div><div class="line"> <span class="attribute">padding-top</span>: <span class="number">15px</span>;</div><div class="line"> <span class="attribute">padding-bottom</span>: <span class="number">15px</span>;</div><div class="line"> <span class="attribute">border-width</span>: <span class="number">2px</span>;</div><div class="line"> <span class="attribute">border-style</span>: solid;</div><div class="line"> <span class="attribute">border-color</span>: <span class="number">#BBBBBB</span>;</div><div class="line"> }</div><div class="line"> <span class="selector-class">.button</span> {</div><div class="line"> <span class="attribute">width</span>: <span class="number">225px</span>;</div><div class="line"> <span class="attribute">text-align</span>: center;</div><div class="line"> <span class="attribute">background-color</span>: <span class="number">#D3D3D3</span>;</div><div class="line"> <span class ="attribute">padding-top</span>: <span class="number">15px</span>;</div><div class="line"> <span class="attribute">padding-bottom</span>: <span class="number">15px</span>;</div><div class="line"> <span class="attribute">margin-bottom</span>: <span class="number">30px</span>;</div><div class="line"> <span class="attribute">font-size</span>: <span class="number">30px</span>;</div><div class="line"> }</div><div class="line"></div><div class="line"> <span class="selector-class">.webview</span> {</div><div class="line"> <span class="attribute">margin-left</span>: <span class="number">75px</span>;</div><div class="line"> <span class="attribute">width</span>: <span class="number">600px</span>;</div><div class="line"> <span class="attribute">height</span>: <span class="number">750px</span>;</div><div class="line"> <span class="attribute">border-width</span>: <span class="number">2px</span>;</div><div class="line"> <span class="attribute">border-style</spa n>: solid;</div><div class="line"> <span class="attribute">border-color</span>: <span class="number">#41B883</span>;</div><div class="line"> }</div><div class="line"><span class="tag"></<span class="name">style</span>></span></div></pre></td></tr></table></figure> -<p><a href="http://dotwe.org/vue/221ff37113a12d692a7a92a100f20162" target="_blank" rel="external">try it</a></p> - - </div> - -</article> -</div> - - <footer id="footer"> - <div class="row clearfix"> - <div class="dropdown select-lang"> - <a href="javascript:;" class="dropdown-toggle"> - Language - <span class="caret"></span> - </a> - <ul class="dropdown-menu pick-lang"> - <li> - <a href="/references/components/web.html" data-lang="en">English</a> - </li> - <li> - <a href="/cn/references/components/web.html" data-lang="zh-cn">ä¸æ</a> - </li> - </ul> - </div> - </div> - <div class="disclaimer"> - <div><img src="//gw.alicdn.com/tfs/TB1pTBZQFXXXXX9XXXXXXXXXXXX-794-280.png" width="200px" alt="Apache Incubator"></div> - <div><span class="title">Disclaimer:</span> Apache Weex is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.</div> - <br/> - </div> - <hr> - <div class="row"> - <p> <img src="//gw.alicdn.com/tfs/TB1bg8SQFXXXXcHXXXXXXXXXXXX-85-170.png" height="50px" alt="Apache"><span>Copyright(c) 2017 The Apache Software Foundation. Licensed under the </span> <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a></p> - </div> - <div class="row clearfix"> - <div></div> - </div> -</footer> - <div style="display: none;"> - <script src="//s95.cnzz.com/z_stat.php?id=1261496509&web_id=1261496509" language="JavaScript"></script> -</div> - - <script src="/js/reqwest.js"></script> - <script src="/js/common.js"></script> -</body> -</html>
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/f3d58bd0/cn/references/gesture.html ---------------------------------------------------------------------- diff --git a/cn/references/gesture.html b/cn/references/gesture.html deleted file mode 100644 index 3e67ad8..0000000 --- a/cn/references/gesture.html +++ /dev/null @@ -1,1416 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"> - - <title>æå¿ | Weex</title> - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> - <meta name="description" content="æå¿æ³¨ï¼è¯¥åè½å±äºå®éªæ§åè½ Weex å°è£ äºåçç触æ¸äºä»¶ä»¥æä¾æå¿ç³»ç»ã使ç¨æå¿ç±»ä¼¼äºå¨ Weex ä¸ä½¿ç¨äºä»¶ï¼åªéå¨èç¹ä¸è®¾ç½® on ç¹æ§æ¥çå¬æå¿å³å¯ã æå¿ç±»åç®åï¼ä» æ¯æ以ä¸åç§æå¿ç±»åï¼ Touchï¼å½è§¦æ¸å°ä¸ä¸ªç¹ï¼ç§»å¨æä»è§¦æ¸é¢ç§»å¼æ¶è§¦å touch æå¿ã触æ¸æå¿å¾ç²¾åï¼å®ä¼è¿åææ详ç»çäºä»¶ä¿¡æ¯ãæ以ï¼çå¬ touch æå¿å¯è½å¾æ ¢ï¼å³ä½¿åªç§»å¨ä¸ä¸ç¹ä¹éè¦å¤ç大éäºä»¶ãæä¸ç§"> -<meta property="og:type" content="website"> -<meta property="og:title" content="æå¿"> -<meta property="og:url" content="https://weex-project.io/cn/references/gesture.html"> -<meta property="og:site_name" content="Weex"> -<meta property="og:description" content="æå¿æ³¨ï¼è¯¥åè½å±äºå®éªæ§åè½ Weex å°è£ äºåçç触æ¸äºä»¶ä»¥æä¾æå¿ç³»ç»ã使ç¨æå¿ç±»ä¼¼äºå¨ Weex ä¸ä½¿ç¨äºä»¶ï¼åªéå¨èç¹ä¸è®¾ç½® on ç¹æ§æ¥çå¬æå¿å³å¯ã æå¿ç±»åç®åï¼ä» æ¯æ以ä¸åç§æå¿ç±»åï¼ Touchï¼å½è§¦æ¸å°ä¸ä¸ªç¹ï¼ç§»å¨æä»è§¦æ¸é¢ç§»å¼æ¶è§¦å touch æå¿ã触æ¸æå¿å¾ç²¾åï¼å®ä¼è¿åææ详ç»çäºä»¶ä¿¡æ¯ãæ以ï¼çå¬ touch æå¿å¯è½å¾æ ¢ï¼å³ä½¿åªç§»å¨ä¸ä¸ç¹ä¹éè¦å¤ç大éäºä»¶ãæä¸ç§"> -<meta property="og:updated_time" content="2017-04-28T02:36:21.000Z"> -<meta name="twitter:card" content="summary"> -<meta name="twitter:title" content="æå¿"> -<meta name="twitter:description" content="æå¿æ³¨ï¼è¯¥åè½å±äºå®éªæ§åè½ Weex å°è£ äºåçç触æ¸äºä»¶ä»¥æä¾æå¿ç³»ç»ã使ç¨æå¿ç±»ä¼¼äºå¨ Weex ä¸ä½¿ç¨äºä»¶ï¼åªéå¨èç¹ä¸è®¾ç½® on ç¹æ§æ¥çå¬æå¿å³å¯ã æå¿ç±»åç®åï¼ä» æ¯æ以ä¸åç§æå¿ç±»åï¼ Touchï¼å½è§¦æ¸å°ä¸ä¸ªç¹ï¼ç§»å¨æä»è§¦æ¸é¢ç§»å¼æ¶è§¦å touch æå¿ã触æ¸æå¿å¾ç²¾åï¼å®ä¼è¿åææ详ç»çäºä»¶ä¿¡æ¯ãæ以ï¼çå¬ touch æå¿å¯è½å¾æ ¢ï¼å³ä½¿åªç§»å¨ä¸ä¸ç¹ä¹éè¦å¤ç大éäºä»¶ãæä¸ç§"> - - <link rel="alternate" href="/atom.xml" title="Weex" type="application/atom+xml"> - - - <link rel="icon" href="//gw.alicdn.com/tps/TB1XNqxPXXXXXcSXVXXXXXXXXXX-64-63.png"> - - - <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css"> - - <link rel="stylesheet" href="/css/style.css"> - <link rel="stylesheet" href="/css/swiper.min.css"> -</head> - -<body id="references" class="lang-cn"> - - <script> - window.PAGE_TYPE = "references"; - window.ROOT = "/" - </script> - <header id="header"> - <div class="navbar"> - <a id="logo" href="/cn/"> - <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" /> - </a> - <div class="main-nav"> - <ul class="links"> - <li><a href="/cn/guide">æç¨</a></li> - <li><a href="/cn/references">æå</a></li> - <li class="dropdown"> - <a href="javascript:;">åè</a> - <ul class="dropdown-menu subnav"> - <li> - <a href="/cn/faq.html">FAQ</a> - </li> - <li> - <a href="/cn/releasenote.html">çæ¬è¯´æ</a> - </li> - </ul> - </li> - <li class="dropdown"> - <a href="javascript:;">å·¥å ·åæå¡</a> - <ul class="dropdown-menu subnav"> - <li> - <a href="/cn/playground.html">Playground</a> - </li> - <li> - <a href="/cn/guide/tools/toolkit.html">Weex-toolkit</a> - </li> - <li> - <a href="http://dotwe.org" target="_blank">Code Snippets</a> - </li> - <li> - <a href="https://market.dotwe.org" target="_blank">Market</a> - </li> - </ul> - </li> - </ul> - <ul class="info"> - <li><a href="https://github.com/apache/incubator-weex/" target="_blank"><span class="btn-github iconfont icon-github"></span></a></li> - </ul> - <ul class="tools"> - <li> - <div class="search"> - <form id="search-form" class="search-form"> <!-- æç´¢æ¡ç¸å ³ --> - <input type="text" id="search-input-header" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/> - <span class="iconfont icon-search"></span> - </form> - <div class="results-panel"> - </div> -</div> - </li> - <li> - <div class="dropdown select-lang"> - <a href="javascript:;" class="dropdown-toggle"> - Language - <span class="caret"></span> - </a> - <ul class="dropdown-menu pick-lang"> - <li> - <a href="/references/gesture.html" data-lang="en">English</a> - </li> - <li> - <a href="/cn/references/gesture.html" data-lang="zh-cn">ä¸æ</a> - </li> - </ul> - </div> - </li> - <!--<li></li>--> - </ul> - </div> - </div> - <div id="mobile-nav"> - <a id="logo" href="/cn/"> - <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" /> - </a> - <a class="btn-menu"><span class="iconfont icon-nav"></span></a> - </div> -</header> - - <div id="sidebar" class=""> - <div class="sidebar-menu"> - - <div class="search"> - <form id="search-form" class="search-form"> <!-- æç´¢æ¡ç¸å ³ --> - <input type="text" id="search-input-sidebar" name="q" results="0" class="form-control search-input" autocomplete="off" autocorrect="off"/> - <span class="iconfont icon-search"></span> - </form> - <div class="results-panel"> - </div> -</div> - - - -<div class="summary"> - <h2 class="part-title"> - - æå - - </h2> - <ul class="doc-summary"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <li> - <h3 class="chapter-title"><a href="/cn/references/index.html" class="sidebar-link ">éç¨ç¹æ§</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/ios-apis.html" class="sidebar-link ">iOS APIs</a> - </li> - - <li> - <a href="/cn/references/android-apis.html" class="sidebar-link ">Android APIs</a> - </li> - - <li> - <a href="/cn/references/html5-apis.html" class="sidebar-link ">HTML5 APIs</a> - </li> - - <li> - <a href="/cn/references/jsfm-apis.html" class="sidebar-link ">JS Framework APIs</a> - </li> - - <li> - <a href="/cn/references/common-style.html" class="sidebar-link ">éç¨æ ·å¼</a> - </li> - - <li> - <a href="/cn/references/text-style.html" class="sidebar-link ">ææ¬æ ·å¼</a> - </li> - - <li> - <a href="/cn/references/color-names.html" class="sidebar-link ">é¢è²å称å表</a> - </li> - - <li> - <a href="/cn/references/gesture.html" class="sidebar-link current ">æå¿</a> - </li> - - <li> - <a href="/cn/references/path.html" class="sidebar-link ">Path (è±)</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/components/index.html" class="sidebar-link ">å 建ç»ä»¶</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/components/a.html" class="sidebar-link "><a></a> - </li> - - <li> - <a href="/cn/references/components/slider.html" class="sidebar-link "><slider></a> - </li> - - <li> - <a href="/cn/references/components/indicator.html" class="sidebar-link "><indicator></a> - </li> - - <li> - <a href="/cn/references/components/switch.html" class="sidebar-link "><switch></a> - </li> - - <li> - <a href="/cn/references/components/text.html" class="sidebar-link "><text></a> - </li> - - <li> - <a href="/cn/references/components/textarea.html" class="sidebar-link "><textarea></a> - </li> - - <li> - <a href="/cn/references/components/video.html" class="sidebar-link "><video></a> - </li> - - <li> - <a href="/cn/references/components/web.html" class="sidebar-link "><web></a> - </li> - - <li> - <a href="/cn/references/components/div.html" class="sidebar-link "><div></a> - </li> - - <li> - <a href="/cn/references/components/image.html" class="sidebar-link "><image></a> - </li> - - <li> - <a href="/cn/references/components/input.html" class="sidebar-link "><input></a> - </li> - - <li> - <a href="/cn/references/components/list.html" class="sidebar-link "><list></a> - </li> - - <li> - <a href="/cn/references/components/cell.html" class="sidebar-link "><cell></a> - </li> - - <li> - <a href="/cn/references/components/loading.html" class="sidebar-link "><loading></a> - </li> - - <li> - <a href="/cn/references/components/refresh.html" class="sidebar-link "><refresh></a> - </li> - - <li> - <a href="/cn/references/components/scroller.html" class="sidebar-link "><scroller></a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/modules/index.html" class="sidebar-link ">å 建模å</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/modules/animation.html" class="sidebar-link ">animation</a> - </li> - - <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> - </li> - - <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> - </li> - - <li> - <a href="/cn/references/modules/clipboard.html" class="sidebar-link ">clipboard</a> - </li> - - <li> - <a href="/cn/references/modules/dom.html" class="sidebar-link ">dom</a> - </li> - - <li> - <a href="/cn/references/modules/modal.html" class="sidebar-link ">modal</a> - </li> - - <li> - <a href="/cn/references/modules/navigator.html" class="sidebar-link ">navigator</a> - </li> - - <li> - <a href="/cn/references/modules/storage.html" class="sidebar-link ">storage</a> - </li> - - <li> - <a href="/cn/references/modules/stream.html" class="sidebar-link ">stream</a> - </li> - - <li> - <a href="/cn/references/modules/webview.html" class="sidebar-link ">webview</a> - </li> - - <li> - <a href="/cn/references/modules/globalevent.html" class="sidebar-link ">globalEvent</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/unit.html" class="sidebar-link ">CSS åä½</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/common-event.html" class="sidebar-link ">éç¨äºä»¶</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/native-dom-api.html" class="sidebar-link ">Native DOM APIs</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/weex-variable.html" class="sidebar-link ">Weex å®ä¾åé</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/web-standards.html" class="sidebar-link ">Web æ å</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/js-service/index.html" class="sidebar-link ">JS Service</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/vue/index.html" class="sidebar-link ">Vue</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/vue/difference-with-web.html" class="sidebar-link ">Vue 2.x å¨ Weex å Web ä¸çå·®å¼</a> - </li> - - <li> - <a href="/cn/references/vue/difference-of-vuex.html" class="sidebar-link ">ä½¿ç¨ Vuex å vue-router</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/advanced/index.html" class="sidebar-link ">é«é¶ç¥è¯</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/advanced/extend-to-ios.html" class="sidebar-link ">iOS æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-to-android.html" class="sidebar-link ">Android æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-to-html5.html" class="sidebar-link ">HTML5 æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-jsfm.html" class="sidebar-link ">æå± JS framework</a> - </li> - - <li> - <a href="/cn/references/advanced/integrate-devtool-to-android.html" class="sidebar-link ">éæ Devtools å° Android</a> - </li> - - <li> - <a href="/cn/references/advanced/integrate-devtool-to-ios.html" class="sidebar-link ">éæ Devtools å° iOS</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/migration/index.html" class="sidebar-link ">è¿ç§»</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/platform-difference.html" class="sidebar-link ">Weex å Web å¹³å°çå·®å¼</a> - </li> - - <li> - <a href="/cn/references/migration/migration-from-weex.html" class="sidebar-link ">å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬</a> - </li> - - <li> - <a href="/cn/references/migration/difference.html" class="sidebar-link ">Weex å Vue 2.x çè¯æ³å·®å¼</a> - </li> - - </ul> - - </li> - - - - <li> - <h3 class="chapter-title"><a href="/cn/v-0.10/references/index.html" class="sidebar-link">æ§è¯æ³ææ¡£</a></h3> - </li> - - </ul> -</div> - - <a class="btn-close-sidebar iconfont icon-close"></a> - </div> -</div> - - <div class="article-wrapper page-layout"> - <div class="doc-nav"> - - - -<div class="summary"> - <h2 class="part-title"> - - æå - - </h2> - <ul class="doc-summary"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <li> - <h3 class="chapter-title"><a href="/cn/references/index.html" class="sidebar-link ">éç¨ç¹æ§</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/ios-apis.html" class="sidebar-link ">iOS APIs</a> - </li> - - <li> - <a href="/cn/references/android-apis.html" class="sidebar-link ">Android APIs</a> - </li> - - <li> - <a href="/cn/references/html5-apis.html" class="sidebar-link ">HTML5 APIs</a> - </li> - - <li> - <a href="/cn/references/jsfm-apis.html" class="sidebar-link ">JS Framework APIs</a> - </li> - - <li> - <a href="/cn/references/common-style.html" class="sidebar-link ">éç¨æ ·å¼</a> - </li> - - <li> - <a href="/cn/references/text-style.html" class="sidebar-link ">ææ¬æ ·å¼</a> - </li> - - <li> - <a href="/cn/references/color-names.html" class="sidebar-link ">é¢è²å称å表</a> - </li> - - <li> - <a href="/cn/references/gesture.html" class="sidebar-link current ">æå¿</a> - </li> - - <li> - <a href="/cn/references/path.html" class="sidebar-link ">Path (è±)</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/components/index.html" class="sidebar-link ">å 建ç»ä»¶</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/components/a.html" class="sidebar-link "><a></a> - </li> - - <li> - <a href="/cn/references/components/slider.html" class="sidebar-link "><slider></a> - </li> - - <li> - <a href="/cn/references/components/indicator.html" class="sidebar-link "><indicator></a> - </li> - - <li> - <a href="/cn/references/components/switch.html" class="sidebar-link "><switch></a> - </li> - - <li> - <a href="/cn/references/components/text.html" class="sidebar-link "><text></a> - </li> - - <li> - <a href="/cn/references/components/textarea.html" class="sidebar-link "><textarea></a> - </li> - - <li> - <a href="/cn/references/components/video.html" class="sidebar-link "><video></a> - </li> - - <li> - <a href="/cn/references/components/web.html" class="sidebar-link "><web></a> - </li> - - <li> - <a href="/cn/references/components/div.html" class="sidebar-link "><div></a> - </li> - - <li> - <a href="/cn/references/components/image.html" class="sidebar-link "><image></a> - </li> - - <li> - <a href="/cn/references/components/input.html" class="sidebar-link "><input></a> - </li> - - <li> - <a href="/cn/references/components/list.html" class="sidebar-link "><list></a> - </li> - - <li> - <a href="/cn/references/components/cell.html" class="sidebar-link "><cell></a> - </li> - - <li> - <a href="/cn/references/components/loading.html" class="sidebar-link "><loading></a> - </li> - - <li> - <a href="/cn/references/components/refresh.html" class="sidebar-link "><refresh></a> - </li> - - <li> - <a href="/cn/references/components/scroller.html" class="sidebar-link "><scroller></a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/modules/index.html" class="sidebar-link ">å 建模å</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/modules/animation.html" class="sidebar-link ">animation</a> - </li> - - <li> - <a href="/cn/references/modules/websocket.html" class="sidebar-link ">WebSocket</a> - </li> - - <li> - <a href="/cn/references/modules/picker.html" class="sidebar-link ">picker</a> - </li> - - <li> - <a href="/cn/references/modules/clipboard.html" class="sidebar-link ">clipboard</a> - </li> - - <li> - <a href="/cn/references/modules/dom.html" class="sidebar-link ">dom</a> - </li> - - <li> - <a href="/cn/references/modules/modal.html" class="sidebar-link ">modal</a> - </li> - - <li> - <a href="/cn/references/modules/navigator.html" class="sidebar-link ">navigator</a> - </li> - - <li> - <a href="/cn/references/modules/storage.html" class="sidebar-link ">storage</a> - </li> - - <li> - <a href="/cn/references/modules/stream.html" class="sidebar-link ">stream</a> - </li> - - <li> - <a href="/cn/references/modules/webview.html" class="sidebar-link ">webview</a> - </li> - - <li> - <a href="/cn/references/modules/globalevent.html" class="sidebar-link ">globalEvent</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/unit.html" class="sidebar-link ">CSS åä½</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/common-event.html" class="sidebar-link ">éç¨äºä»¶</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/native-dom-api.html" class="sidebar-link ">Native DOM APIs</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/weex-variable.html" class="sidebar-link ">Weex å®ä¾åé</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/web-standards.html" class="sidebar-link ">Web æ å</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/js-service/index.html" class="sidebar-link ">JS Service</a></h3> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/vue/index.html" class="sidebar-link ">Vue</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/vue/difference-with-web.html" class="sidebar-link ">Vue 2.x å¨ Weex å Web ä¸çå·®å¼</a> - </li> - - <li> - <a href="/cn/references/vue/difference-of-vuex.html" class="sidebar-link ">ä½¿ç¨ Vuex å vue-router</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/advanced/index.html" class="sidebar-link ">é«é¶ç¥è¯</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/advanced/extend-to-ios.html" class="sidebar-link ">iOS æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-to-android.html" class="sidebar-link ">Android æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-to-html5.html" class="sidebar-link ">HTML5 æ©å±</a> - </li> - - <li> - <a href="/cn/references/advanced/extend-jsfm.html" class="sidebar-link ">æå± JS framework</a> - </li> - - <li> - <a href="/cn/references/advanced/integrate-devtool-to-android.html" class="sidebar-link ">éæ Devtools å° Android</a> - </li> - - <li> - <a href="/cn/references/advanced/integrate-devtool-to-ios.html" class="sidebar-link ">éæ Devtools å° iOS</a> - </li> - - </ul> - - </li> - - <li> - <h3 class="chapter-title"><a href="/cn/references/migration/index.html" class="sidebar-link ">è¿ç§»</a></h3> - - <ul class="chapter"> - - <li> - <a href="/cn/references/platform-difference.html" class="sidebar-link ">Weex å Web å¹³å°çå·®å¼</a> - </li> - - <li> - <a href="/cn/references/migration/migration-from-weex.html" class="sidebar-link ">å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬</a> - </li> - - <li> - <a href="/cn/references/migration/difference.html" class="sidebar-link ">Weex å Vue 2.x çè¯æ³å·®å¼</a> - </li> - - </ul> - - </li> - - - - <li> - <h3 class="chapter-title"><a href="/cn/v-0.10/references/index.html" class="sidebar-link">æ§è¯æ³ææ¡£</a></h3> - </li> - - </ul> -</div> - </div> - - -<article class="article article-type-references"> - <div class="article-entry" itemprop="articleBody"> - <header class="article-header"> - - - <h1 class="article-title" itemprop="name"> - æå¿ - </h1> - - - <time class="article-date" datetime="2017-04-28T02:36:21.000Z">Updated time: 28/04/2017</time> -</header> - <h1 id="æå¿"><a href="#æå¿" class="headerlink" title="æå¿"></a>æå¿</h1><p><em>注ï¼è¯¥åè½å±äºå®éªæ§åè½</em></p> -<p>Weex å°è£ äºåçç触æ¸äºä»¶ä»¥æä¾æå¿ç³»ç»ã使ç¨æå¿ç±»ä¼¼äºå¨ Weex ä¸ä½¿ç¨äºä»¶ï¼åªéå¨èç¹ä¸è®¾ç½® <code>on</code> ç¹æ§æ¥çå¬æå¿å³å¯ã</p> -<h2 id="æå¿ç±»å"><a href="#æå¿ç±»å" class="headerlink" title="æå¿ç±»å"></a>æå¿ç±»å</h2><p>ç®åï¼ä» æ¯æ以ä¸åç§æå¿ç±»åï¼</p> -<ul> -<li><p><strong>Touch</strong>ï¼å½è§¦æ¸å°ä¸ä¸ªç¹ï¼ç§»å¨æä»è§¦æ¸é¢ç§»å¼æ¶è§¦å <code>touch</code> æå¿ã触æ¸æå¿å¾ç²¾åï¼å®ä¼è¿åææ详ç»çäºä»¶ä¿¡æ¯ãæ以ï¼çå¬ <code>touch</code> æå¿å¯è½å¾æ ¢ï¼å³ä½¿åªç§»å¨ä¸ä¸ç¹ä¹éè¦å¤ç大éäºä»¶ãæä¸ç§ç±»åç <code>touch</code> æå¿ï¼</p> -<ul> -<li><code>touchstart</code> å°å¨è§¦æ¸å°è§¦æ¸é¢ä¸æ¶è§¦åã</li> -<li><code>touchmove</code> å°å¨è§¦æ¸ç¹å¨è§¦æ¸é¢ç§»å¨æ¶è¢«è§¦åã</li> -<li><code>touchend</code> å°å¨ä»è§¦æ¸é¢ç¦»å¼æ¶è¢«è§¦åã</li> -</ul> -</li> -<li><p><strong>Pan</strong>ï¼<code>pan</code> æå¿ä¹ä¼è¿å触æ¸ç¹å¨è§¦æ¸é¢ç移å¨ä¿¡æ¯ï¼æç¹ç±»ä¼¼äº <code>touch</code> æå¿ãä½æ¯ <code>pan</code> æå¿åªä¼éæ ·æ¶éé¨åäºä»¶ä¿¡æ¯å æ¤æ¯ <code>touch</code> äºä»¶è¦å¿«å¾å¤ï¼å½ç¶ç²¾åæ§å·®äº <code>touch</code>ã<code>pan</code> ä¹æä¸ä¸ç±»åçæå¿ï¼è¿äºæå¿çæä¹ä¸ <code>touch</code> å®å ¨ä¸æ ·ï¼</p> -<ul> -<li><code>panstart</code></li> -<li><code>panmove</code></li> -<li><code>panend</code></li> -<li><code>horizontalpan</code> <span class="api-version">v0.10+</span>ï¼æå¿ç <code>start/move/end</code> ç¶æä¿åå¨ <code>state</code> ç¹æ§ä¸ãç®å该æå¿å¨ Android ä¸ä¼ä¸ click äºä»¶å²çªã</li> -<li><code>verticalpan</code> <span class="api-version">v0.10+</span>ï¼å¿ç <code>start/move/end</code> ç¶æä¿åå¨ <code>state</code> ç¹æ§ä¸ãç®å该æå¿å¨ Android ä¸ä¼ä¸ click äºä»¶å²çªã</li> -</ul> -</li> -<li><strong>Swipe</strong>ï¼<code>swipe</code> å°ä¼å¨ç¨æ·å¨å±å¹ä¸æ»å¨æ¶è§¦åï¼ä¸æ¬¡è¿ç»çæ»å¨åªä¼è§¦åä¸æ¬¡ <code>swiper</code> æå¿ã</li> -<li><strong>LongPress</strong>ï¼<code>LongPress</code> å°ä¼å¨è§¦æ¸ç¹è¿ç»ä¿æ 500 ms以ä¸æ¶è§¦åã</li> -</ul> -<p><code>touch</code> å <code>pan</code> é常æ¥è¿ï¼å®ä»¬çç¹ç¹å¯ä»¥æ»ç»æè¿æ ·ï¼</p> -<ul> -<li><strong>Touch</strong>ï¼å®æ´ä¿¡æ¯ï¼ç²¾åãå¾æ ¢</li> -<li><strong>Pan</strong>ï¼æ½æ ·ä¿¡æ¯ï¼å¾å¿«ï¼ä¸å¤ç²¾å</li> -</ul> -<p>å¼åè å¯ä»¥æ ¹æ®èªå·±çæ åµéæ©åéçæå¿ã</p> -<h2 id="å±æ§"><a href="#å±æ§" class="headerlink" title="å±æ§"></a>å±æ§</h2><p>以ä¸å±æ§å¯ä»¥å¨æå¿çåè°ä¸ä½¿ç¨ï¼</p> -<ul> -<li><code>direction</code>ï¼ä» å¨ <code>swipe</code> æå¿ä¸åå¨ï¼è¿åæ»å¨æ¹åï¼è¿åå¼å¯è½ä¸º <code>up</code>, <code>left</code>, <code>bottom</code>, <code>right</code>ã</li> -<li><code>changedTouches</code>ï¼ä¸ä¸ªæ°ç»ï¼å å«äºå½åæå¿ç触æ¸ç¹çè¿å¨è½¨è¿¹</li> -</ul> -<h3 id="changedTouches"><a href="#changedTouches" class="headerlink" title="changedTouches"></a>changedTouches</h3><p><code>changedTouches</code> æ¯ä¸ä¸ªæ°ç»ï¼å ¶åå ç´ ä¸å å«ä»¥ä¸å±æ§ï¼</p> -<ul> -<li><code>identifier</code>ï¼è§¦æ¸ç¹çå¯ä¸æ è¯ç¬¦ã</li> -<li><code>pageX</code>ï¼è§¦æ¸ç¹ç¸å¯¹äºæ档左侧边ç¼ç X è½´åæ ã</li> -<li><code>pageY</code>ï¼è§¦æ¸ç¹ç¸å¯¹äºæ档顶é¨è¾¹ç¼ç Y è½´åæ ã</li> -<li><code>screenX</code>ï¼è§¦æ¸ç¹ç¸å¯¹äºå±å¹å·¦ä¾§è¾¹ç¼ç X è½´åæ ã</li> -<li><code>screenY</code>ï¼è§¦æ¸ç¹ç¸å¯¹äºå±å¹é¡¶é¨è¾¹ç¼ç Y è½´åæ ã</li> -</ul> -<h2 id="约æ"><a href="#约æ" class="headerlink" title="约æ"></a>约æ</h2><p>ç®åï¼ç±äºä¼è§¦å大éäºä»¶å²çªï¼Weex Android è¿ä¸æ¯æå¨æ»å¨ç±»åçå ç´ ä¸çå¬æå¿ï¼ä¾å¦ <code>scroller</code>, <code>list</code> å <code>webview</code> è¿ä¸ä¸ªç»ä»¶ã</p> - - </div> - -</article> -</div> - - <footer id="footer"> - <div class="row clearfix"> - <div class="dropdown select-lang"> - <a href="javascript:;" class="dropdown-toggle"> - Language - <span class="caret"></span> - </a> - <ul class="dropdown-menu pick-lang"> - <li> - <a href="/references/gesture.html" data-lang="en">English</a> - </li> - <li> - <a href="/cn/references/gesture.html" data-lang="zh-cn">ä¸æ</a> - </li> - </ul> - </div> - </div> - <div class="disclaimer"> - <div><img src="//gw.alicdn.com/tfs/TB1pTBZQFXXXXX9XXXXXXXXXXXX-794-280.png" width="200px" alt="Apache Incubator"></div> - <div><span class="title">Disclaimer:</span> Apache Weex is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.</div> - <br/> - </div> - <hr> - <div class="row"> - <p> <img src="//gw.alicdn.com/tfs/TB1bg8SQFXXXXcHXXXXXXXXXXXX-85-170.png" height="50px" alt="Apache"><span>Copyright(c) 2017 The Apache Software Foundation. Licensed under the </span> <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a></p> - </div> - <div class="row clearfix"> - <div></div> - </div> -</footer> - <div style="display: none;"> - <script src="//s95.cnzz.com/z_stat.php?id=1261496509&web_id=1261496509" language="JavaScript"></script> -</div> - - <script src="/js/reqwest.js"></script> - <script src="/js/common.js"></script> -</body> -</html>