http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/f3d58bd0/cn/references/migration/index.html ---------------------------------------------------------------------- diff --git a/cn/references/migration/index.html b/cn/references/migration/index.html deleted file mode 100644 index 581ebf4..0000000 --- a/cn/references/migration/index.html +++ /dev/null @@ -1,1377 +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 项ç®æ¹é æ Vue çæ¬ Weex å Vue 2.x çè¯æ³å·®å¼"> -<meta property="og:type" content="website"> -<meta property="og:title" content="è¿ç§»"> -<meta property="og:url" content="https://weex-project.io/cn/references/migration/index.html"> -<meta property="og:site_name" content="Weex"> -<meta property="og:description" content="è¿ç§» å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬ Weex å Vue 2.x çè¯æ³å·®å¼"> -<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 项ç®æ¹é æ Vue çæ¬ Weex å Vue 2.x çè¯æ³å·®å¼"> - - <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/migration/index.html" data-lang="en">English</a> - </li> - <li> - <a href="/cn/references/migration/index.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 "><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 current ">è¿ç§»</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 "><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 current ">è¿ç§»</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><ul> -<li><a href="./migration-from-weex.html">å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬</a></li> -<li><a href="./difference.html">Weex å Vue 2.x çè¯æ³å·®å¼</a></li> -</ul> - - </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/migration/index.html" data-lang="en">English</a> - </li> - <li> - <a href="/cn/references/migration/index.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/migration/migration-from-weex.html ---------------------------------------------------------------------- diff --git a/cn/references/migration/migration-from-weex.html b/cn/references/migration/migration-from-weex.html deleted file mode 100644 index 2693b08..0000000 --- a/cn/references/migration/migration-from-weex.html +++ /dev/null @@ -1,1490 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"> - - <title>å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬ | Weex</title> - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> - <meta name="description" content="å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬Weex æ¬èº«æä¸å¥è¯æ³è§åï¼å Vue æ¬èº«å¾ç¸ä¼¼ï¼ç°å¨ Weex ä¸ Vue æäºå®æ¹åä½ï¼æ¯æå° Vue 2.x ä½ä¸ºå ç½®çå端æ¡æ¶ï¼æ们ä¹æ¨èå¤§å®¶ä½¿ç¨ Vue 2.x çè¯æ³å¼ååçåºç¨ã对äºç°åæ§çç .we æ件ï¼å»ºè®®å¤§å®¶å°å ¶æ¹é æ Vue çæ¬ã è¦è§£å³çé®é¢ å°å æ ¸åæ¢æ Vue ä¹åï¼åå åºäº Weex è¯æ³å¼åç项ç®å°å¦ä½è¿æ¸¡å° V"> -<meta property="og:type" content="website"> -<meta property="og:title" content="å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬"> -<meta property="og:url" content="https://weex-project.io/cn/references/migration/migration-from-weex.html"> -<meta property="og:site_name" content="Weex"> -<meta property="og:description" content="å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬Weex æ¬èº«æä¸å¥è¯æ³è§åï¼å Vue æ¬èº«å¾ç¸ä¼¼ï¼ç°å¨ Weex ä¸ Vue æäºå®æ¹åä½ï¼æ¯æå° Vue 2.x ä½ä¸ºå ç½®çå端æ¡æ¶ï¼æ们ä¹æ¨èå¤§å®¶ä½¿ç¨ Vue 2.x çè¯æ³å¼ååçåºç¨ã对äºç°åæ§çç .we æ件ï¼å»ºè®®å¤§å®¶å°å ¶æ¹é æ Vue çæ¬ã è¦è§£å³çé®é¢ å°å æ ¸åæ¢æ Vue ä¹åï¼åå åºäº Weex è¯æ³å¼åç项ç®å°å¦ä½è¿æ¸¡å° V"> -<meta property="og:updated_time" content="2017-04-28T02:36:21.000Z"> -<meta name="twitter:card" content="summary"> -<meta name="twitter:title" content="å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬"> -<meta name="twitter:description" content="å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬Weex æ¬èº«æä¸å¥è¯æ³è§åï¼å Vue æ¬èº«å¾ç¸ä¼¼ï¼ç°å¨ Weex ä¸ Vue æäºå®æ¹åä½ï¼æ¯æå° Vue 2.x ä½ä¸ºå ç½®çå端æ¡æ¶ï¼æ们ä¹æ¨èå¤§å®¶ä½¿ç¨ Vue 2.x çè¯æ³å¼ååçåºç¨ã对äºç°åæ§çç .we æ件ï¼å»ºè®®å¤§å®¶å°å ¶æ¹é æ Vue çæ¬ã è¦è§£å³çé®é¢ å°å æ ¸åæ¢æ Vue ä¹åï¼åå åºäº Weex è¯æ³å¼åç项ç®å°å¦ä½è¿æ¸¡å° V"> - - <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/migration/migration-from-weex.html" data-lang="en">English</a> - </li> - <li> - <a href="/cn/references/migration/migration-from-weex.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 "><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 current ">å¦ä½å°åæ 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 "><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 current ">å¦ä½å°åæ 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"> - å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬ - </h1> - - - <time class="article-date" datetime="2017-04-28T02:36:21.000Z">Updated time: 28/04/2017</time> -</header> - <h1 id="å¦ä½å°åæ-Weex-项ç®æ¹é æ-Vue-çæ¬"><a href="#å¦ä½å°åæ-Weex-项ç®æ¹é æ-Vue-çæ¬" class="headerlink" title="å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬"></a>å¦ä½å°åæ Weex 项ç®æ¹é æ Vue çæ¬</h1><p>Weex æ¬èº«æä¸å¥è¯æ³è§åï¼å Vue æ¬èº«å¾ç¸ä¼¼ï¼ç°å¨ Weex ä¸ Vue æäºå®æ¹åä½ï¼æ¯æå° Vue 2.x ä½ä¸ºå ç½®çå端æ¡æ¶ï¼æ们ä¹æ¨èå¤§å®¶ä½¿ç¨ Vue 2.x çè¯æ³å¼ååçåºç¨ã对äºç°åæ§çç <code>.we</code> æ件ï¼å»ºè®®å¤§å®¶å°å ¶æ¹é æ Vue çæ¬ã</p> -<h2 id="è¦è§£å³çé®é¢"><a href="#è¦è§£å³çé®é¢" class="headerlink" title="è¦è§£å³çé®é¢"></a>è¦è§£å³çé®é¢</h2><blockquote> -<p>å°å æ ¸åæ¢æ Vue ä¹åï¼åå åºäº Weex è¯æ³å¼åç项ç®å°å¦ä½è¿æ¸¡å° Vue ï¼</p> -</blockquote> -<p>é¦å éè¦æç¡®ä¸ç¹ï¼Weex åæçå端æ¡æ¶ä¹ä¼ç»§ç»åå¨äº WeexSDK ä¸ï¼ä¾ç¶æ¯æ <code>.we</code> æä»¶æ ¼å¼çåæ³ã</p> -<p>æ¤å¤ï¼ç±äº <code>.we</code> å <code>.vue</code> æ件çæ ¼å¼æ¬èº«å°±æ¯è¾æ¥è¿ï¼æ以è¿ç§»ææ¬æ¯è¾å°ï¼å»ºè®®å¤§å®¶å°ç°æ <code>.we</code> æ ¼å¼çæ件é½è½¬æ¢æ <code>.vue</code> æ ¼å¼ãæ们ä¹æ¨åºäºç¸åºçå·¥å ·åæ¹æ³è¾ å©è¿ç§»ï¼å¨å é¨ä¹æ大éçæåå®è·µï¼ä¸è¾¹å°éç¹ä»ç»ä¸ä¸å° <code>.we</code> æ件转æ <code>.vue</code> æ件çæ¹æ³ã</p> -<h2 id="第ä¸æ¥ï¼åå©å·¥å ·å®ç°è¯æ³è½¬æ¢"><a href="#第ä¸æ¥ï¼åå©å·¥å ·å®ç°è¯æ³è½¬æ¢" class="headerlink" title="第ä¸æ¥ï¼åå©å·¥å ·å®ç°è¯æ³è½¬æ¢"></a>第ä¸æ¥ï¼åå©å·¥å ·å®ç°è¯æ³è½¬æ¢</h2><p>é¦å ä»ç»ä¸ä¸ªå·¥å ·ï¼ <strong><a href="https://github.com/songsiqi/weex-vue-migration" target="_blank" rel="external">weex-vue-migration</a></strong> ï¼å®å¯ä»¥èªå¨å° <code>.we</code> æ件转为 <code>.vue</code> æ件ï¼ç»å¤§å¤æ°ç模æ¿è¯æ³é½è½èªå¨è½¬æ¢ï¼è¯æ³å·®å¼å¦ä¸ï¼</p> -<table> -<thead> -<tr> -<th></th> -<th>Weex</th> -<th>Vue</th> -</tr> -</thead> -<tbody> -<tr> -<td>çå½å¨æ</td> -<td><code>ready: function() {}</code></td> -<td><code>mounted: function() {}</code></td> -</tr> -<tr> -<td>æ¡ä»¶æ令</td> -<td><code>if="{{!foo}}"</code></td> -<td><code>v-if="!foo"</code></td> -</tr> -<tr> -<td>循ç¯æ令</td> -<td><code>repeat="{{item in list}}"</code></td> -<td><code>v-for="item in list"</code></td> -</tr> -<tr> -<td>æ ·å¼ç±»å</td> -<td><code>class="btn btn-{{type}}"</code></td> -<td><code>:class="['btn', 'btn-' + type]"</code></td> -</tr> -<tr> -<td>å èæ ·å¼</td> -<td><code>style="color:{{textColor}}"</code></td> -<td><code>:style="{ color: textColor }"</code></td> -</tr> -<tr> -<td>äºä»¶ç»å®</td> -<td><code>onclick="handler"</code></td> -<td><code>@click="handler"</code></td> -</tr> -<tr> -<td>åçäºä»¶</td> -<td><code>onclick="xxx"</code></td> -<td><code>@click.native="xxx"</code></td> -</tr> -<tr> -<td>æ°æ®ç»å®</td> -<td><code>src="{{rightItemSrc}}"</code></td> -<td><code>:src="rightItemSrc"</code></td> -</tr> -<tr> -<td>å 容/槽</td> -<td><code><content></content></code></td> -<td><code><slot></slot></code></td> -</tr> -<tr> -<td>æ°æ®åå§å</td> -<td><code>data: { value: 'x' }</code></td> -<td><code>data: function() { return { value: 'x' } }</code></td> -</tr> -<tr> -<td>æ ç¾ ID</td> -<td><code>id="xxx"</code></td> -<td><code>ref="xxx"</code></td> -</tr> -<tr> -<td>è·åèç¹</td> -<td><code>this.$el('xxx')</code></td> -<td><code>this.$refs.xxx</code></td> -</tr> -</tbody> -</table> -<p>æ³è¦äºè§£æ´å¤è¯æ³å·®å¼çç»èï¼å¯ä»¥åèè¿ç¯æç« ï¼<a href="./difference.html">ãWeex å Vue 2.x çè¯æ³å·®å¼ã</a> ã</p> -<h3 id="使ç¨æ¹æ³"><a href="#使ç¨æ¹æ³" class="headerlink" title="使ç¨æ¹æ³"></a>使ç¨æ¹æ³</h3><p>é¦å å®è£ å·¥å ·ï¼</p> -<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">npm install weex-vue-migration -g</div></pre></td></tr></table></figure> -<p>转æ¢æ件ï¼</p> -<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">weex-vue-migrate demo.we</div></pre></td></tr></table></figure> -<p>转æ¢æååï¼å°ä¼å¨å½åç®å½ä¸çæ <code>demo.vue</code> æ件ï¼æ§å¶å°å°ä¼æå¦ä¸è¾åºï¼</p> -<figure class="highlight plain"><table><tr><td class="code"><pre><div class="line">[Success]: Migrate demo.we => demo.vue in 33ms</div><div class="line">Migration finished in 0.035s</div></pre></td></tr></table></figure> -<p>é¤äºéä¸ªè½¬æ¢ <code>.we</code> æ件以å¤ï¼<code>weex-vue-migration</code> è¿æ¯ææ¹é转æ¢æ´ä¸ªç®å½ï¼åèå ¶<a href="https://github.com/songsiqi/weex-vue-migration/blob/master/README.md" target="_blank" rel="external">说æææ¡£</a>å¯ä»¥äºè§£æ´è¯¦ç»ç使ç¨æ¹æ³ã</p> -<h3 id="注æäºé¡¹"><a href="#注æäºé¡¹" class="headerlink" title="注æäºé¡¹"></a>注æäºé¡¹</h3><p>转æ¢å·¥å ·å°ä¸åæ¯æ Weex ä¸åºå¼çè¯æ³ï¼å¦æ代ç ä¸æå¦ä¸åæ³ï¼å»ºè®®å æå¨ä¿®æ¹åå转æ¢ã</p> -<ol> -<li>å¿½ç¥ <code>require('@weex-components')</code> è¯å¥ï¼å¯ä»¥éè¿ npm å çæ¹å¼å¼å ¥å¤é¨ç»ä»¶ã</li> -<li>æ æ³è½¬æ¢ <code>repeat="list"</code> åæ³ï¼ä» æ¯æ <code>repeat="item in list"</code> æ ¼å¼ã</li> -<li>ä¸æ¯æè½¬æ¢ <code><script type="config"></script></code>ï¼ç®å Vue ä¸ä¸æ¯æåæçé级é ç½®ã</li> -</ol> -<h2 id="第äºæ¥ï¼æå¨è°æ´ä»£ç ç»è"><a href="#第äºæ¥ï¼æå¨è°æ´ä»£ç ç»è" class="headerlink" title="第äºæ¥ï¼æå¨è°æ´ä»£ç ç»è"></a>第äºæ¥ï¼æå¨è°æ´ä»£ç ç»è</h2><p>模æ¿åæ ·å¼ç转æ¢é½å¯ä»¥åå©å·¥å ·è½»æ转æ¢è¿æ¥ï¼<code><script></code> ä¸åºæ¬çè¯æ³ä¹å¯ä»¥è½¬æ¢ï¼ä½æ¯ç±äº javascript çåæ³æ¯è¾çµæ´»ï¼ä» ä» ä½¿ç¨å·¥å ·å转æ¢ï¼å¹¶ä¸ä¸å®è½å®ç¾è¿æ¸¡ãå·¥å ·åªè½å¤çè¯æ³ä½æ¯ç解ä¸äºä»£ç ä¸çé»è¾ï¼å¨ Weex å Vue çæ¡æ¶ç¹æ§åå¨ä¸äºå·®å¼ï¼æäºå·®å¼è¿æ¯éè¦æå¨ä¿®æ¹æå¯ä»¥çæã</p> -<blockquote> -<p>æ示ï¼å¨ä»£ç ä¸ä½¿ç¨çâé»ç§æâè¶å¤ï¼é¡¹ç®å°±è¶é¾ä»¥è½¬æ¢ã</p> -</blockquote> -<h3 id="æ ·å¼åä½"><a href="#æ ·å¼åä½" class="headerlink" title="æ ·å¼åä½"></a>æ ·å¼åä½</h3><p>å¨ <code>.we</code> æ件åæ ·å¼æ¶ï¼å¼åè é常é½ä¸åé¿åº¦åä½ï¼é»è®¤ä¼è¢«è§ä¸º <code>px</code>ãå¨æ°ç Vue çæ¬ç Web 渲æå¨ä¸ï¼<code><style></code> ä¸çæ ·å¼å°ä¼ç´æ¥è½¬åæ CSS classï¼å¦æä¸ååä½ãæµè§å¨å°æ æ³æ£ç¡®è¯å«ï¼ä¼å¯¼è´å¨ Web 端æ æ³æ£å¸¸æ¸²æãNative ç¯å¢ä¸ä¸åå½±åã</p> -<p>尽管ä¸å½±å Native 页é¢ç渲æï¼ä¹å»ºè®®ç»æ ·å¼é¿åº¦å ä¸åä½ <code>px</code>ã</p> -<h3 id="æ§æ¡æ¶ä¸çå ç½®å±æ§"><a href="#æ§æ¡æ¶ä¸çå ç½®å±æ§" class="headerlink" title="æ§æ¡æ¶ä¸çå ç½®å±æ§"></a>æ§æ¡æ¶ä¸çå ç½®å±æ§</h3><ul> -<li><code>vm._app</code><ul> -<li><code>vm._app.differ</code></li> -<li><code>vm._app.doc</code></li> -<li><code>vm._app.updateActions()</code></li> -</ul> -</li> -</ul> -<h3 id="äºä»¶æ´¾åæºå¶"><a href="#äºä»¶æ´¾åæºå¶" class="headerlink" title="äºä»¶æ´¾åæºå¶"></a>äºä»¶æ´¾åæºå¶</h3><ul> -<li><code>$dispatch</code> ã<code>$broadcast</code> ã<code>$call</code> æ¹æ³å·²ç»åºå¼ã</li> -<li><code>$emit</code> è¡ä¸ºä¸ä¸è´ã</li> -</ul> -<p>å¯ä»¥ä½¿ç¨ Vuex 管çæ°æ®ç¶æã</p> -<h3 id="ç´æ¥æä½-Virtual-DOM"><a href="#ç´æ¥æä½-Virtual-DOM" class="headerlink" title="ç´æ¥æä½ Virtual-DOM"></a>ç´æ¥æä½ Virtual-DOM</h3><p>Weex å Vue ä¸ç Virtual-DOM æ ¼å¼å¹¶ä¸ç¸åï¼å¦æä½ ä½¿ç¨äº <code>this.$el('id')</code> è·åäºæ个ç»ä»¶ç element ä¹åï¼åä¿®æ¹äºå ¶ä¸çæäºå±æ§æè è°ç¨äºæäºæ¹æ³ï¼è¿äºæä½å¨ Vue ä¸å¾é¾æ¾å°ç´æ¥ç对åºåæ³ã</p> -<p>ä»å¦ä¸ä¸ªè§åº¦è®²ï¼æ们ä¹é常ä¸å»ºè®®å¨ Weex æ Vue 项ç®ä¸ç´æ¥æä½ Virtual-DOMï¼è¿äºåæ³é½åºè¯¥ä¿®æ¹ã</p> -<h2 id="è°æ´å¼åç¯å¢åå·¥å ·"><a href="#è°æ´å¼åç¯å¢åå·¥å ·" class="headerlink" title="è°æ´å¼åç¯å¢åå·¥å ·"></a>è°æ´å¼åç¯å¢åå·¥å ·</h2><p>å¨æ件转æ¢å®æåï¼è¿éè¦éæ°è°æ´ä¸ä¸å¼åç¯å¢ã</p> -<h3 id="æ件çç¼è¯"><a href="#æ件çç¼è¯" class="headerlink" title="æ件çç¼è¯"></a>æ件çç¼è¯</h3><p><code>weex-loader</code> åæ¶æ¯æç¼è¯ <code>.we</code> å <code>.vue</code> æ件ï¼å¦æä½ ä½¿ç¨çæ¯ <code>webpack</code> æ¥é ç½®ç¼è¯ç¯å¢ï¼å°ä¸éè¦åä»»ä½æ¹åå°±è½ç´æ¥ç¼è¯ <code>.vue</code> æ件ã</p> -<p>éè¦æ³¨æçæ¯ï¼Vue æ¬èº«å°±æ¯ä¸ä¸ªç¬ç«çå端æ¡æ¶ï¼ä½¿ç¨ Vue ç¼åç项ç®å¨ Web ä¸å®å ¨å¯ä»¥ä¸ä¾èµ Weex 容å¨è¿è¡ãå¨è¿ç§æ åµä¸ï¼éè¦é ç½®åºäº <code>vue-loader</code> çç¼è¯èæ¬çæéç¨äº Web å¹³å° js æ件ï¼ç¶åå¼å ¥ Vue æ ¼å¼ç Weex ç»ä»¶åºå°±å¯ä»¥å¨ Web ä¸ã</p> -<h3 id="è¾ å©å·¥å ·"><a href="#è¾ å©å·¥å ·" class="headerlink" title="è¾ å©å·¥å ·"></a>è¾ å©å·¥å ·</h3><p>Weex æä¾äº <a href="https://github.com/weexteam/weex-toolkit" target="_blank" rel="external">weex-toolkit</a> çèææ¶å·¥å ·æ¥è¾ å©å¼ååè°è¯ã<a href="https://github.com/weexteam/weex-pack" target="_blank" rel="external">weex-pack</a> å®ç°æå åçåºç¨ï¼åæ ·å¨ Vue ä¸ä¹æ <a href="https://github.com/vuejs/vue-cli" target="_blank" rel="external">vue-cli</a> èææ¶å·¥å ·ãWeex å Vue çå·¥å ·äºç¸åäºéé ï¼å»ºè®®å¨å建项ç®åå¼å Vue 项ç®çæ¶åä½¿ç¨ <code>vue-cli</code> ï¼å¨è°è¯æ¶ä½¿ç¨ <code>weex-toolkit</code>ï¼å¨æå åçåºç¨æ¶ä½¿ç¨ <code>weex-pack</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/migration/migration-from-weex.html" data-lang="en">English</a> - </li> - <li> - <a href="/cn/references/migration/migration-from-weex.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>