You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/02/01 07:21:15 UTC

[15/51] [partial] incubator-weex-site git commit: Site updated: 2017-02-01 15:00:00

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/14041490/content/cn/references/weex-variable.html
----------------------------------------------------------------------
diff --git a/content/cn/references/weex-variable.html b/content/cn/references/weex-variable.html
new file mode 100644
index 0000000..6766aa9
--- /dev/null
+++ b/content/cn/references/weex-variable.html
@@ -0,0 +1,1344 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>Weex \u5b9e\u4f8b\u53d8\u91cf | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="Weex \u5b9e\u4f8b\u53d8\u91cf\u6bcf\u4e2a Weex \u9875\u9762\u7684 JS \u4e0a\u4e0b\u6587\u4e2d\u90fd\u6709\u4e00\u4e2a\u76f8\u4e92\u72ec\u7acb\u7684 weex \u53d8\u91cf\uff0c\u7528\u6765\u6301\u6709\u5f53\u524d Weex \u9875\u9762\u76f8\u5173\u7684\u5355\u4f8b\u5185\u5bb9\u6216\u65b9\u6cd5\u3002
+weex.config\u8be5\u53d8\u91cf\u5305\u542b\u4e86\u5f53\u524d Weex \u9875\u9762\u7684\u6240\u6709\u73af\u5883\u4fe1\u606f\uff0c\u5305\u62ec\u4e0d\u4ec5\u9650\u4e8e\uff1a
+
+bundleUrl: string: JS bundle \u7684 URL\u3002
+env: Object: \u73af\u5883\u5bf9\u8c61\u3002
+weexVersion: string: Weex sdk">
+<meta property="og:type" content="website">
+<meta property="og:title" content="Weex \u5b9e\u4f8b\u53d8\u91cf">
+<meta property="og:url" content="https://weex.apache.org/cn/references/weex-variable.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="Weex \u5b9e\u4f8b\u53d8\u91cf\u6bcf\u4e2a Weex \u9875\u9762\u7684 JS \u4e0a\u4e0b\u6587\u4e2d\u90fd\u6709\u4e00\u4e2a\u76f8\u4e92\u72ec\u7acb\u7684 weex \u53d8\u91cf\uff0c\u7528\u6765\u6301\u6709\u5f53\u524d Weex \u9875\u9762\u76f8\u5173\u7684\u5355\u4f8b\u5185\u5bb9\u6216\u65b9\u6cd5\u3002
+weex.config\u8be5\u53d8\u91cf\u5305\u542b\u4e86\u5f53\u524d Weex \u9875\u9762\u7684\u6240\u6709\u73af\u5883\u4fe1\u606f\uff0c\u5305\u62ec\u4e0d\u4ec5\u9650\u4e8e\uff1a
+
+bundleUrl: string: JS bundle \u7684 URL\u3002
+env: Object: \u73af\u5883\u5bf9\u8c61\u3002
+weexVersion: string: Weex sdk">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.919Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="Weex \u5b9e\u4f8b\u53d8\u91cf">
+<meta name="twitter:description" content="Weex \u5b9e\u4f8b\u53d8\u91cf\u6bcf\u4e2a Weex \u9875\u9762\u7684 JS \u4e0a\u4e0b\u6587\u4e2d\u90fd\u6709\u4e00\u4e2a\u76f8\u4e92\u72ec\u7acb\u7684 weex \u53d8\u91cf\uff0c\u7528\u6765\u6301\u6709\u5f53\u524d Weex \u9875\u9762\u76f8\u5173\u7684\u5355\u4f8b\u5185\u5bb9\u6216\u65b9\u6cd5\u3002
+weex.config\u8be5\u53d8\u91cf\u5305\u542b\u4e86\u5f53\u524d Weex \u9875\u9762\u7684\u6240\u6709\u73af\u5883\u4fe1\u606f\uff0c\u5305\u62ec\u4e0d\u4ec5\u9650\u4e8e\uff1a
+
+bundleUrl: string: JS bundle \u7684 URL\u3002
+env: Object: \u73af\u5883\u5bf9\u8c61\u3002
+weexVersion: string: Weex sdk">
+  
+    <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">\u6559\u7a0b</a></li>
+        <li><a href="/cn/references">\u624b\u518c</a></li>
+        <li><a href="/cn/faq.html">FAQ</a></li>
+        <li class="dropdown">
+            <a href="javascript:;">\u4e0b\u8f7d</a>
+            <ul class="dropdown-menu subnav">
+              <li>
+                <a href="/cn/playground.html">Playground</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weex-devtool" target="_blank">Devtool</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weexpack" target="_blank">Weexpack</a>
+              </li>
+              <li>
+                <a href="http://dotwe.org" target="_blank">Snippets</a>
+              </li>
+              <li>
+                <a href="https://market.weex-project.io/" target="_blank">Market</a>
+              </li>
+            </ul>
+        </li>
+      </ul>
+      <ul class="info">
+        <li><a href="https://github.com/alibaba/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"> <!-- \u641c\u7d22\u6846\u76f8\u5173 -->
+    <input type="text" id="search-input-header" name="q" results="0" placeholder="search..." class="form-control search-input" autocomplete="off" autocorrect="off"/>
+    <span class="iconfont icon-search"></span>
+  </form>
+  <div class="results-panel">
+  </div>
+</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"> <!-- \u641c\u7d22\u6846\u76f8\u5173 -->
+    <input type="text" id="search-input-sidebar" name="q" results="0" placeholder="search..." 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">
+    
+      \u624b\u518c
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/index.html" class="sidebar-link  ">\u901a\u7528\u7279\u6027</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/jsfm-apis.html" class="sidebar-link  ">JS Framework APIs</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/html5-apis.html" class="sidebar-link  ">HTML5 APIs</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/common-style.html" class="sidebar-link  ">\u901a\u7528\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/text-style.html" class="sidebar-link  ">\u6587\u672c\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/color-names.html" class="sidebar-link  ">\u989c\u8272\u540d\u79f0\u5217\u8868</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/gesture.html" class="sidebar-link  ">\u624b\u52bf</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/path.html" class="sidebar-link  ">Path (\u82f1)</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/components/index.html" class="sidebar-link  ">\u5185\u5efa\u7ec4\u4ef6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/references/components/a.html" class="sidebar-link  ">&lt;a&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/slider.html" class="sidebar-link  ">&lt;slider&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/indicator.html" class="sidebar-link  ">&lt;indicator&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/switch.html" class="sidebar-link  ">&lt;switch&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/text.html" class="sidebar-link  ">&lt;text&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/textarea.html" class="sidebar-link  ">&lt;textarea&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/video.html" class="sidebar-link  ">&lt;video&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/web.html" class="sidebar-link  ">&lt;web&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/div.html" class="sidebar-link  ">&lt;div&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/image.html" class="sidebar-link  ">&lt;image&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/list.html" class="sidebar-link  ">&lt;list&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/input.html" class="sidebar-link  ">&lt;input&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/cell.html" class="sidebar-link  ">&lt;cell&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/loading.html" class="sidebar-link  ">&lt;loading&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/refresh.html" class="sidebar-link  ">&lt;refresh&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/scroller.html" class="sidebar-link  ">&lt;scroller&gt;</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/modules/index.html" class="sidebar-link  ">\u5185\u5efa\u6a21\u5757</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/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 \u5355\u4f4d</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/common-event.html" class="sidebar-link  ">\u901a\u7528\u4e8b\u4ef6</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 current ">Weex \u5b9e\u4f8b\u53d8\u91cf</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/web-standards.html" class="sidebar-link  ">Web \u6807\u51c6</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 \u5728 Weex \u548c Web \u4e2d\u7684\u5dee\u5f02</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/vue/difference-of-vuex.html" class="sidebar-link  ">\u4f7f\u7528 Vuex \u548c vue-router</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/advanced/index.html" class="sidebar-link  ">\u9ad8\u9636\u77e5\u8bc6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/references/advanced/extend-to-ios.html" class="sidebar-link  ">iOS \u6269\u5c55</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/advanced/extend-to-android.html" class="sidebar-link  ">Android \u6269\u5c55</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/advanced/extend-to-html5.html" class="sidebar-link  ">HTML5 \u6269\u5c55</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/advanced/extend-jsfm.html" class="sidebar-link  ">\u62d3\u5c55 JS framework</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/advanced/integrate-devtool-to-android.html" class="sidebar-link  ">\u96c6\u6210 Devtools \u5230 Android</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/advanced/integrate-devtool-to-ios.html" class="sidebar-link  ">\u96c6\u6210 Devtools \u5230 iOS</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/migration/index.html" class="sidebar-link  ">\u8fc1\u79fb</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/references/migration/migration-from-weex.html" class="sidebar-link  ">\u5982\u4f55\u5c06\u539f\u6709 Weex \u9879\u76ee\u6539\u9020\u6210 Vue \u7248\u672c</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/migration/difference.html" class="sidebar-link  ">Weex \u548c Vue 2.x \u7684\u8bed\u6cd5\u5dee\u5f02</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/platform-difference.html" class="sidebar-link  ">Weex \u548c Web \u5e73\u53f0\u7684\u5dee\u5f02</a></h3>
+        
+      </li>
+    
+    
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/index.html" class="sidebar-link">\u65e7\u6587\u6863</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">
+    
+      \u624b\u518c
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/index.html" class="sidebar-link  ">\u901a\u7528\u7279\u6027</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/jsfm-apis.html" class="sidebar-link  ">JS Framework APIs</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/html5-apis.html" class="sidebar-link  ">HTML5 APIs</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/common-style.html" class="sidebar-link  ">\u901a\u7528\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/text-style.html" class="sidebar-link  ">\u6587\u672c\u6837\u5f0f</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/color-names.html" class="sidebar-link  ">\u989c\u8272\u540d\u79f0\u5217\u8868</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/gesture.html" class="sidebar-link  ">\u624b\u52bf</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/path.html" class="sidebar-link  ">Path (\u82f1)</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/components/index.html" class="sidebar-link  ">\u5185\u5efa\u7ec4\u4ef6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/references/components/a.html" class="sidebar-link  ">&lt;a&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/slider.html" class="sidebar-link  ">&lt;slider&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/indicator.html" class="sidebar-link  ">&lt;indicator&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/switch.html" class="sidebar-link  ">&lt;switch&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/text.html" class="sidebar-link  ">&lt;text&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/textarea.html" class="sidebar-link  ">&lt;textarea&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/video.html" class="sidebar-link  ">&lt;video&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/web.html" class="sidebar-link  ">&lt;web&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/div.html" class="sidebar-link  ">&lt;div&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/image.html" class="sidebar-link  ">&lt;image&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/list.html" class="sidebar-link  ">&lt;list&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/input.html" class="sidebar-link  ">&lt;input&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/cell.html" class="sidebar-link  ">&lt;cell&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/loading.html" class="sidebar-link  ">&lt;loading&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/refresh.html" class="sidebar-link  ">&lt;refresh&gt;</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/components/scroller.html" class="sidebar-link  ">&lt;scroller&gt;</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/modules/index.html" class="sidebar-link  ">\u5185\u5efa\u6a21\u5757</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/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 \u5355\u4f4d</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/common-event.html" class="sidebar-link  ">\u901a\u7528\u4e8b\u4ef6</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 current ">Weex \u5b9e\u4f8b\u53d8\u91cf</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/web-standards.html" class="sidebar-link  ">Web \u6807\u51c6</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 \u5728 Weex \u548c Web \u4e2d\u7684\u5dee\u5f02</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/vue/difference-of-vuex.html" class="sidebar-link  ">\u4f7f\u7528 Vuex \u548c vue-router</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/advanced/index.html" class="sidebar-link  ">\u9ad8\u9636\u77e5\u8bc6</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/references/advanced/extend-to-ios.html" class="sidebar-link  ">iOS \u6269\u5c55</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/advanced/extend-to-android.html" class="sidebar-link  ">Android \u6269\u5c55</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/advanced/extend-to-html5.html" class="sidebar-link  ">HTML5 \u6269\u5c55</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/advanced/extend-jsfm.html" class="sidebar-link  ">\u62d3\u5c55 JS framework</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/advanced/integrate-devtool-to-android.html" class="sidebar-link  ">\u96c6\u6210 Devtools \u5230 Android</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/advanced/integrate-devtool-to-ios.html" class="sidebar-link  ">\u96c6\u6210 Devtools \u5230 iOS</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/migration/index.html" class="sidebar-link  ">\u8fc1\u79fb</a></h3>
+        
+          <ul class="chapter">
+            
+              <li>
+                <a href="/cn/references/migration/migration-from-weex.html" class="sidebar-link  ">\u5982\u4f55\u5c06\u539f\u6709 Weex \u9879\u76ee\u6539\u9020\u6210 Vue \u7248\u672c</a>
+              </li>
+            
+              <li>
+                <a href="/cn/references/migration/difference.html" class="sidebar-link  ">Weex \u548c Vue 2.x \u7684\u8bed\u6cd5\u5dee\u5f02</a>
+              </li>
+            
+          </ul>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/references/platform-difference.html" class="sidebar-link  ">Weex \u548c Web \u5e73\u53f0\u7684\u5dee\u5f02</a></h3>
+        
+      </li>
+    
+    
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/references/index.html" class="sidebar-link">\u65e7\u6587\u6863</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 \u5b9e\u4f8b\u53d8\u91cf
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.919Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="Weex-\u5b9e\u4f8b\u53d8\u91cf"><a href="#Weex-\u5b9e\u4f8b\u53d8\u91cf" class="headerlink" title="Weex \u5b9e\u4f8b\u53d8\u91cf"></a>Weex \u5b9e\u4f8b\u53d8\u91cf</h1><p>\u6bcf\u4e2a Weex \u9875\u9762\u7684 JS \u4e0a\u4e0b\u6587\u4e2d\u90fd\u6709\u4e00\u4e2a\u76f8\u4e92\u72ec\u7acb\u7684 <code>weex</code> \u53d8\u91cf\uff0c\u7528\u6765\u6301\u6709\u5f53\u524d Weex \u9875\u9762\u76f8\u5173\u7684\u5355\u4f8b\u5185\u5bb9\u6216\u65b9\u6cd5\u3002</p>
+<h2 id="weex-config"><a href="#weex-config" class="headerlink" title="weex.config"></a><code>weex.config</code></h2><p>\u8be5\u53d8\u91cf\u5305\u542b\u4e86\u5f53\u524d Weex \u9875\u9762\u7684\u6240\u6709\u73af\u5883\u4fe1\u606f\uff0c\u5305\u62ec\u4e0d\u4ec5\u9650\u4e8e\uff1a</p>
+<ul>
+<li><code>bundleUrl: string</code>: JS bundle \u7684 URL\u3002</li>
+<li><code>env: Object</code>: \u73af\u5883\u5bf9\u8c61\u3002<ul>
+<li><code>weexVersion: string</code>: Weex sdk \u7248\u672c\u3002</li>
+<li><code>appName: string</code>: \u5e94\u7528\u540d\u5b57\u3002</li>
+<li><code>appVersion: string</code>: \u5e94\u7528\u7248\u672c\u3002</li>
+<li><code>platform: string</code>: \u5e73\u53f0\u4fe1\u606f\uff0c\u662f iOS\u3001Android \u8fd8\u662f Web\u3002</li>
+<li><code>osVersion: string</code>: \u7cfb\u7edf\u7248\u672c\u3002</li>
+<li><code>deviceModel: string</code>: \u8bbe\u5907\u578b\u53f7 (\u4ec5\u539f\u751f\u5e94\u7528)\u3002</li>
+<li><code>deviceWidth: number</code>: \u8bbe\u5907\u5bbd\u5ea6\uff0c\u9ed8\u8ba4\u4e3a 750\u3002</li>
+<li><code>deviceHeight: number</code>: \u8bbe\u5907\u9ad8\u5ea6\u3002</li>
+</ul>
+</li>
+</ul>
+<h2 id="weex-requireModule-module-string-Object"><a href="#weex-requireModule-module-string-Object" class="headerlink" title="weex.requireModule(module: string): Object"></a><code>weex.requireModule(module: string): Object</code></h2><p>\u83b7\u53d6\u67d0\u4e2a native module \u7684\u6240\u6709\u65b9\u6cd5\uff0c\u6bd4\u5982\uff1a</p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">template</span>&gt;</span></div><div class="line">  <span class="tag">&lt;<span class="name">div</span>&gt;</span><span class="tag">&lt;<span class="name">text</span>&gt;</span>Hello World<span class="tag">&lt;/<span class="name">text</span>&gt;</span><span class="tag">&lt;/<span class="name">div</span>&gt;</span></div><div class="line"><span class="tag">&lt;/<span class="name">template</span>&gt;</span></div><div class="line"><span class="tag">&lt;<span class="name">script</span>&gt;</span><span class="javascript"></span></div><div class="line">  <span class="keyword">var</span> modal = weex.requireModule(<span class="string">'modal'</span>)</div><div class="line">  modal.toast(&#123;</div><div class="line">    <span class="attr">message</span>: <span class="string">'I am a toast.'</span>,</div><div class="line">    <span class="attr">duration</span>: <span cla
 ss="number">3</span></div><div class="line">  &#125;)</div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div></pre></td></tr></table></figure>
+<h2 id="weex-document-Document"><a href="#weex-document-Document" class="headerlink" title="weex.document: Document"></a><code>weex.document: Document</code></h2><p>\u8fd4\u56de\u5f53\u524d Weex \u9875\u9762\u7684\u6587\u6863\u5bf9\u8c61\u3002</p>
+
+  </div>
+  
+</article>
+</div>
+  
+  <footer id="footer">
+  <div class="row clearfix">
+    <div class="ali-logo">
+      <img src="//gw.alicdn.com/tps/TB1Ef93PXXXXXaXXpXXXXXXXXXX-252-126.png" alt="Alibaba">
+    </div>
+    <div class="dropdown select-lang">
+      <a href="javascript:;" class="dropdown-toggle">
+        Language
+        <span class="caret"></span>
+      </a>
+      <ul class="dropdown-menu">
+        <li>
+          <a href="/references/weex-variable.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/references/weex-variable.html">\u4e2d\u6587</a>
+        </li>
+      </ul>
+    </div>
+  </div>
+  <div class="row">
+    <p><span>Released under </span><a href="">Apache License 2.0</a></p>
+  </div>
+  <div class="row clearfix">
+    <div class="cell"><span>Copyright(c) 2016 </span><a href="https://www.alibaba.com">Alibaba</a></div>
+    <div class="cell"><span>GroupMade by </span><a href="">\u963f\u91cc\u4e91UED AX</a></div>
+  </div>
+</footer>
+  <div style="display: none;">
+  <script src="//s95.cnzz.com/z_stat.php?id=1261102667&amp;web_id=1261102667" 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/14041490/content/cn/v-0.10/advanced/create-a-weex-project.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/advanced/create-a-weex-project.html b/content/cn/v-0.10/advanced/create-a-weex-project.html
new file mode 100644
index 0000000..c70d8f9
--- /dev/null
+++ b/content/cn/v-0.10/advanced/create-a-weex-project.html
@@ -0,0 +1,483 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee\u5bf9\u4e8e\u524d\u7aef\u5f00\u53d1\u8005\u6765\u8bf4\u5f00\u53d1\u4e00\u4e2a app \u662f\u4e0d\u5bb9\u6613\u7684\uff0c\u65e2\u7136 Weex \u80fd\u4ee5 web \u7684\u5f00\u53d1\u4f53\u9a8c\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u53ef\u6269\u5c55\u7684 native \u5e94\u7528\uff0c\u90a3\u6211\u4eec\u600e\u4e48\u5229\u7528 Weex \u7b80\u5355\u9ad8\u6548\u7684\u5f00\u53d1\u4e00\u4e2a native \u5e94\u7528\u5462\uff1fWeex \u66ff\u4f60\u8003\u8651\u4e86\u8fd9\u4ef6\u4e8b\u3002\u5728\u672c\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u5b66\u4e60\u5982\u4f55\u4f7f\u7528 Weexpack \u5de5\u5177\u5feb\u901f\u751f\u6210\u4e00\u4e2a\u5168\u65b0\u7684 Weex \u9879\u76ee\u3002
+\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e0d\u540c\uff0c\u6b65\u9aa4\u4e5f\u7565\u6709\u5dee\u5f02\uff0c\u5982\u679c\u4f60\u4ece\u672a\u63a5\u89e6\u8fc7">
+<meta property="og:type" content="website">
+<meta property="og:title" content="\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee">
+<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/advanced/create-a-weex-project.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee\u5bf9\u4e8e\u524d\u7aef\u5f00\u53d1\u8005\u6765\u8bf4\u5f00\u53d1\u4e00\u4e2a app \u662f\u4e0d\u5bb9\u6613\u7684\uff0c\u65e2\u7136 Weex \u80fd\u4ee5 web \u7684\u5f00\u53d1\u4f53\u9a8c\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u53ef\u6269\u5c55\u7684 native \u5e94\u7528\uff0c\u90a3\u6211\u4eec\u600e\u4e48\u5229\u7528 Weex \u7b80\u5355\u9ad8\u6548\u7684\u5f00\u53d1\u4e00\u4e2a native \u5e94\u7528\u5462\uff1fWeex \u66ff\u4f60\u8003\u8651\u4e86\u8fd9\u4ef6\u4e8b\u3002\u5728\u672c\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u5b66\u4e60\u5982\u4f55\u4f7f\u7528 Weexpack \u5de5\u5177\u5feb\u901f\u751f\u6210\u4e00\u4e2a\u5168\u65b0\u7684 Weex \u9879\u76ee\u3002
+\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e0d\u540c\uff0c\u6b65\u9aa4\u4e5f\u7565\u6709\u5dee\u5f02\uff0c\u5982\u679c\u4f60\u4ece\u672a\u63a5\u89e6\u8fc7">
+<meta property="og:image" content="https://img.alicdn.com/tps/TB1jLx4OFXXXXaoXFXXXXXXXXXX-212-33.png">
+<meta property="og:image" content="https://gw.alicdn.com/tps/TB1VulhOFXXXXcPXFXXXXXXXXXX-828-686.png">
+<meta property="og:image" content="https://img.alicdn.com/tps/TB1CBdgOFXXXXXnXVXXXXXXXXXX-661-392.jpg">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.921Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee">
+<meta name="twitter:description" content="\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee\u5bf9\u4e8e\u524d\u7aef\u5f00\u53d1\u8005\u6765\u8bf4\u5f00\u53d1\u4e00\u4e2a app \u662f\u4e0d\u5bb9\u6613\u7684\uff0c\u65e2\u7136 Weex \u80fd\u4ee5 web \u7684\u5f00\u53d1\u4f53\u9a8c\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u53ef\u6269\u5c55\u7684 native \u5e94\u7528\uff0c\u90a3\u6211\u4eec\u600e\u4e48\u5229\u7528 Weex \u7b80\u5355\u9ad8\u6548\u7684\u5f00\u53d1\u4e00\u4e2a native \u5e94\u7528\u5462\uff1fWeex \u66ff\u4f60\u8003\u8651\u4e86\u8fd9\u4ef6\u4e8b\u3002\u5728\u672c\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u5b66\u4e60\u5982\u4f55\u4f7f\u7528 Weexpack \u5de5\u5177\u5feb\u901f\u751f\u6210\u4e00\u4e2a\u5168\u65b0\u7684 Weex \u9879\u76ee\u3002
+\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e0d\u540c\uff0c\u6b65\u9aa4\u4e5f\u7565\u6709\u5dee\u5f02\uff0c\u5982\u679c\u4f60\u4ece\u672a\u63a5\u89e6\u8fc7">
+<meta name="twitter:image" content="https://img.alicdn.com/tps/TB1jLx4OFXXXXaoXFXXXXXXXXXX-212-33.png">
+  
+    <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="advanced" class="lang-cn">
+  
+  <script>
+    window.PAGE_TYPE = "advanced";
+    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">\u6559\u7a0b</a></li>
+        <li><a href="/cn/references">\u624b\u518c</a></li>
+        <li><a href="/cn/faq.html">FAQ</a></li>
+        <li class="dropdown">
+            <a href="javascript:;">\u4e0b\u8f7d</a>
+            <ul class="dropdown-menu subnav">
+              <li>
+                <a href="/cn/playground.html">Playground</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weex-devtool" target="_blank">Devtool</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weexpack" target="_blank">Weexpack</a>
+              </li>
+              <li>
+                <a href="http://dotwe.org" target="_blank">Snippets</a>
+              </li>
+              <li>
+                <a href="https://market.weex-project.io/" target="_blank">Market</a>
+              </li>
+            </ul>
+        </li>
+      </ul>
+      <ul class="info">
+        <li><a href="https://github.com/alibaba/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"> <!-- \u641c\u7d22\u6846\u76f8\u5173 -->
+    <input type="text" id="search-input-header" name="q" results="0" placeholder="search..." class="form-control search-input" autocomplete="off" autocorrect="off"/>
+    <span class="iconfont icon-search"></span>
+  </form>
+  <div class="results-panel">
+  </div>
+</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">
+    
+      <ul class="main-nav">
+        <li>
+          <div class="search">
+  <form id="search-form" class="search-form"> <!-- \u641c\u7d22\u6846\u76f8\u5173 -->
+    <input type="text" id="search-input-sidebar" name="q" results="0" placeholder="search..." class="form-control search-input" autocomplete="off" autocorrect="off"/>
+    <span class="iconfont icon-search"></span>
+  </form>
+  <div class="results-panel">
+  </div>
+</div>
+        </li>
+        <li>
+          <a class="" href="/cn/guide">
+            \u6559\u7a0b
+          </a>
+        </li>
+        <li>
+          <a class="" href="/cn/references">
+            \u624b\u518c
+          </a>
+        </li>
+        <li>
+          <a href="/cn/faq">
+            FAQ
+          </a>
+        </li>
+        <li>
+            <p>\u4e0b\u8f7d</p>
+            <ul class="subnav">
+              <li>
+                <a href="/cn/playground.html">Playground</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weex-devtool" target="_blank">Devtool</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weexpack" target="_blank">Weexpack</a>
+              </li>
+              <li>
+                <a href="http://dotwe.org" target="_blank">Snippets</a>
+              </li>
+              </li>
+              <li>
+                <a href="https://market.weex-project.io/" target="_blank">Market</a>
+              </li>
+            </ul>
+        </li>
+        <li>
+          <a href="https://github.com/alibaba/weex" target="_blank">
+            GitHub
+          </a>
+        </li>
+      </ul>
+    
+    <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">
+    
+      \u9ad8\u9636\u77e5\u8bc6
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/index.html" class="sidebar-link  ">Weex \u5de5\u4f5c\u539f\u7406</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/how-data-binding-works.html" class="sidebar-link  ">\u6570\u636e\u7ed1\u5b9a\u539f\u7406</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/create-a-weex-project.html" class="sidebar-link current ">\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/integrate-to-android.html" class="sidebar-link  ">\u96c6\u6210\u5230 Android</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/integrate-to-ios.html" class="sidebar-link  ">\u96c6\u6210\u5230 iOS</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/integrate-to-html5.html" class="sidebar-link  ">\u96c6\u6210\u5230 web</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/customize-a-native-component.html" class="sidebar-link  ">\u81ea\u5b9a\u4e49 native \u7ec4\u4ef6</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/cuszomize-native-apis.html" class="sidebar-link  ">\u81ea\u5b9a\u4e49 native API</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/extend-to-android.html" class="sidebar-link  ">Android \u6269\u5c55</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/extend-to-ios.html" class="sidebar-link  ">iOS \u6269\u5c55</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/extend-to-html5.html" class="sidebar-link  ">weex-html5 \u6269\u5c55</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/integrate-devtools-to-android.html" class="sidebar-link  ">\u96c6\u6210 Devtools \u5230 Android</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/integrate-devtools-to-ios.html" class="sidebar-link  ">\u96c6\u6210 Devtools \u5230 iOS</a></h3>
+        
+      </li>
+    
+    
+    
+  </ul>
+</div>
+  </div>
+  
+
+<article class="article article-type-advanced">
+  <div class="article-entry" itemprop="articleBody">
+    <header class="article-header">
+  
+    
+      <h1 class="article-title" itemprop="name">
+        \u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.921Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="\u5982\u4f55\u521b\u5efa\u4e00\u4e2a-Weex-\u9879\u76ee"><a href="#\u5982\u4f55\u521b\u5efa\u4e00\u4e2a-Weex-\u9879\u76ee" class="headerlink" title="\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee"></a>\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee</h1><p>\u5bf9\u4e8e\u524d\u7aef\u5f00\u53d1\u8005\u6765\u8bf4\u5f00\u53d1\u4e00\u4e2a app \u662f\u4e0d\u5bb9\u6613\u7684\uff0c\u65e2\u7136 Weex \u80fd\u4ee5 web \u7684\u5f00\u53d1\u4f53\u9a8c\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u53ef\u6269\u5c55\u7684 native \u5e94\u7528\uff0c\u90a3\u6211\u4eec\u600e\u4e48\u5229\u7528 Weex \u7b80\u5355\u9ad8\u6548\u7684\u5f00\u53d1\u4e00\u4e2a native \u5e94\u7528\u5462\uff1fWeex \u66ff\u4f60\u8003\u8651\u4e86\u8fd9\u4ef6\u4e8b\u3002\u5728\u672c\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u5b66\u4e60\u5982\u4f55\u4f7f\u7528 Weexpack \u5de5\u5177\u5feb\u901f\u751f\u6210\u4e00\u4e2a\u5168\u65b0\u7684 Weex \u9879\u76ee\u3002</p>
+<p>\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e0d\u540c\uff0c\u6b65\u9aa4\u4e5f\u7565\u6709\u5dee\u5f02\uff0c\u5982\u679c\u4f60\u4ece\u672a\u63a5\u89e6\u8fc7 native \u5f00\u53d1\uff0c\u8bf7\u6162\u6162\u6765\uff0c\u9047\u5230\u95ee\u9898\u968f\u65f6\u67e5\u9605 <a href="../faq.md">FAQ</a>\u3002</p>
+<p>\u9996\u5148\uff0c\u4e0d\u8bba\u4efb\u4f55\u5e73\u53f0\uff0c\u6211\u4eec\u90fd\u9700\u8981 node.js \u548c Weexpack\u3002\u5728\u672c\u8282\u4e2d\uff0c\u9ed8\u8ba4\u4f60\u5df2\u7ecf\u5b89\u88c5\u597d\u4e86 node.js \u548c npm\uff0c\u5982\u6709\u7591\u95ee\uff0c\u53ef\u53c2\u8003\u4e0a\u4e00\u7ae0 <a href="../guide/develop-on-your-local-machine.html">\u5982\u4f55\u5728\u672c\u5730\u5f00\u53d1 Weex \u9875\u9762</a>\u3002</p>
+<p>Weexpack \u662f Weex \u65b0\u4e00\u4ee3\u7684\u5de5\u7a0b\u5f00\u53d1\u5957\u4ef6\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u901a\u8fc7\u7b80\u5355\u7684\u547d\u4ee4\uff0c\u521b\u5efa weex \u5de5\u7a0b\u9879\u76ee\uff0c\u5c06\u9879\u76ee\u8fd0\u884c\u5728\u4e0d\u540c\u7684\u5f00\u53d1\u5e73\u53f0\u4e0a\u3002\u672a\u6765\uff0c\u6211\u4eec\u8003\u8651\u4f1a\u5c06\u5176\u96c6\u6210\u5728 weex-toolkits \u4e0a\uff0c\u4f46\u76ee\u524d\u4ecd\u9700\u8981\u5355\u72ec\u5b89\u88c5\u3002\u597d\u5728\u5b89\u88c5 Weexpack \u975e\u5e38\u7b80\u5355\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 npm \u5b89\u88c5\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">npm install weexpack -g</div></pre></td></tr></table></figure>
+<p>\u6216\u8005\u7528 cnpm\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">cnpm install weexpack -g</div></pre></td></tr></table></figure>
+<p>\u63a5\u4e0b\u6765\u7684\u6b65\u9aa4\u4f1a\u6709\u4e00\u4e9b\u590d\u6742\u548c\u533a\u522b\uff0c\u6839\u636e\u5f00\u53d1\u5e73\u53f0\u7684\u4e0d\u540c\uff0c\u6211\u4eec\u63d0\u4f9b\u4e86\u5feb\u901f\u5bfc\u822a\u4fbf\u4e8e\u9605\u8bfb\uff1a</p>
+<ul>
+<li><a href="#ios">iOS</a></li>
+<li><a href="#android">Android</a></li>
+</ul>
+<h2 id="iOS"><a href="#iOS" class="headerlink" title="iOS"></a>iOS</h2><p>Mac \u662f\u552f\u4e00\u53ef\u4ee5\u5f00\u53d1 iOS \u5e94\u7528\u7684\u5e73\u53f0\uff0c\u56e0\u6b64\u521b\u5efa iOS \u9879\u76ee\u53ea\u652f\u6301 mac\u3002\u5bf9\u4e8e iOS\uff0c\u4f60\u9700\u8981\u5b89\u88c5 <a href="https://developer.apple.com/xcode/" target="_blank" rel="external">Xcode</a> \u548c <a href="https://guides.cocoapods.org/using/getting-started.html" target="_blank" rel="external">CocoaPods</a> \u3002</p>
+<p>\u5b89\u88c5 Xcode \u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u5230 <a href="https://itunes.apple.com/us/app/xcode/id497799835?mt=12" target="_blank" rel="external">Mac App Store</a>\u3002Xcode \u4f53\u79ef\u8f83\u5927\uff0c\u4e0b\u8f7d\u8bf7\u8010\u5fc3\u7b49\u5f85\u3002</p>
+<p>\u5b89\u88c5\u597d Xcode \u540e\uff0c\u4f60\u9700\u8981\u8fd0\u884c Xcode\uff0c\u4f7f Xcode \u81ea\u52a8\u5b89\u88c5\u5f00\u53d1\u8005\u5de5\u5177\u548c\u786e\u8ba4\u4f7f\u7528\u534f\u8bae\u3002</p>
+<p>\u4e4b\u540e\u4f60\u8fd8\u9700\u8981\u5b89\u88c5 <a href="https://guides.cocoapods.org/using/getting-started.html" target="_blank" rel="external">CocoaPods</a> \u3002CocoaPods \u662f Xcode \u9879\u76ee\u7684\u7c7b\u5e93\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">$ sudo gem install cocoapods</div></pre></td></tr></table></figure>
+<p>\u5982\u679c\u6267\u884c\u8be5\u547d\u4ee4\u65e0\u53cd\u5e94\uff0c\u5f88\u53ef\u80fd\u662f gem source \u95ee\u9898\uff0c\u4f60\u53ef\u4ee5\u5207\u6362\u4e3a\u6dd8\u5b9d gem source\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">$ gem sources --remove https://rubygems.org/</div><div class="line">$ gem sources <span class="_">-a</span> https://ruby.taobao.org/</div><div class="line">$ sudo gem install cocoapods</div></pre></td></tr></table></figure>
+<p>\u5982\u6709\u95ee\u9898\uff0c\u53ef\u53c2\u8003 <a href="https://guides.cocoapods.org/using/getting-started.html" target="_blank" rel="external">CocoaPods \u5b98\u65b9\u6587\u6863</a></p>
+<h3 id="\u521b\u5efa\u9879\u76ee"><a href="#\u521b\u5efa\u9879\u76ee" class="headerlink" title="\u521b\u5efa\u9879\u76ee"></a>\u521b\u5efa\u9879\u76ee</h3><p>\u7136\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528 weexpack \u521b\u5efa weex \u5de5\u7a0b\u4e86\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">$ weexpack init appName</div></pre></td></tr></table></figure>
+<p>weexpack \u4f1a\u81ea\u52a8\u65b0\u5efa\u4ee5 appName \u547d\u540d\u7684\u76ee\u5f55\uff0c\u5e76\u5c06\u9879\u76ee\u6a21\u677f\u62c9\u53d6\u5230\u8be5\u76ee\u5f55\u3002</p>
+<p>\u6700\u7ec8\u5f62\u6210\u5982\u4e0b\u76ee\u5f55\u7ed3\u6784\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">-&gt; /appName</div><div class="line">.</div><div class="line">|\u2014\u2014 .gitignore</div><div class="line">|\u2014\u2014 README.md</div><div class="line">|\u2014\u2014 package.json</div><div class="line">|-- android.config.json</div><div class="line">|-- ios.config.json</div><div class="line">|\u2014\u2014 webpack.config.js</div><div class="line">|\u2014\u2014 /src</div><div class="line">|     |\u2014\u2014 index.we</div><div class="line">|\u2014\u2014 /html5</div><div class="line">|     |\u2014\u2014 index.html</div><div class="line">|\u2014\u2014 /ios</div><div class="line">|     |\u2014\u2014 /playground</div><div class="line">|     |\u2014\u2014 /sdk</div><div class="line">|     |\u2014\u2014 /WXDevtool</div><div class="line">|\u2014\u2014 /android</div><div class="line">|     |\u2014\u2014 /playground</div><div class="line">|     |\u2014\u2014 /appframework</div></pre></td></tr></table></figure>
+<p>\u5176\u4e2d\uff1a</p>
+<ul>
+<li><code>webpack.config.js</code> \u662f webpack \u914d\u7f6e\u6587\u4ef6\uff0c\u7528\u4e8e\u751f\u6210 <code>.we</code> \u6587\u4ef6\u7684 JSBunlde</li>
+<li><code>ios.config.json</code> \u662f iOS \u9879\u76ee\u914d\u7f6e\u6587\u4ef6</li>
+<li><code>android.config.json</code> \u662f Android \u9879\u76ee\u914d\u7f6e\u6587\u4ef6</li>
+<li><code>/src</code> \u76ee\u5f55\u653e\u7f6e Weex \u9875\u9762</li>
+<li><code>/html5</code> \u662f H5 \u7aef\u5165\u53e3\u6587\u4ef6</li>
+<li><code>/ios</code> \u653e\u7f6e iOS \u9879\u76ee</li>
+<li><code>/android</code> \u653e\u7f6e Android \u9879\u76ee</li>
+</ul>
+<p>\u7d27\u63a5\u7740\uff0c\u8fdb\u5165\u76ee\u5f55\uff0c\u5e76\u4e14\u5b89\u88c5\u4f9d\u8d56\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">$ <span class="built_in">cd</span> appName &amp;&amp; npm install</div></pre></td></tr></table></figure>
+<p>\u81f3\u6b64\uff0c\u9879\u76ee\u6a21\u7248\u521b\u5efa\u5b8c\u6210\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u53ef\u4ee5\u81ea\u5b9a\u4e49\u6211\u4eec\u7684 APP \u4fe1\u606f\u5e76\u6253\u5305\u8fd0\u884c\u3002</p>
+<h3 id="\u8fd0\u884c\u4e0e\u6253\u5305"><a href="#\u8fd0\u884c\u4e0e\u6253\u5305" class="headerlink" title="\u8fd0\u884c\u4e0e\u6253\u5305"></a>\u8fd0\u884c\u4e0e\u6253\u5305</h3><p>\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 weexpack \u6253\u5305\u6216\u6a21\u62df\u5668\u8fd0\u884c\u4e86\uff1a</p>
+<p>\u6a21\u62df\u5668\u8fd0\u884c</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">$ weexpack run ios</div></pre></td></tr></table></figure>
+<p>\u6784\u5efa ipa \u5305\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">$ weexpack build ios</div></pre></td></tr></table></figure>
+<p>\u6784\u5efa\u5305\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5c06\u4f1a\u63d0\u793a\u8ba9\u60a8\u8f93\u5165 CodeSign\uff08\u8bc1\u4e66\uff09\u3001Profile(provisioning profile)\u3001AppId\uff0c\u53ea\u6709\u8f93\u5165\u771f\u5b9e\u7684\u8fd9\u4e9b\u4fe1\u606f\u624d\u80fd\u6210\u529f\u6253\u5305\u3002 \u5176\u4f59\u5982AppName\uff0c\u548c\u5165\u53e3 weex bundle \u6587\u4ef6\u53ef\u4ee5\u7f16\u8f91\u9879\u76ee\u76ee\u5f55\u4e0b\u7684 <code>ios.config.json</code> \u914d\u7f6e\u3002 \u6253\u5b8c\u5305\u6210\u529f\u4e4b\u540e\uff0c\u53ef\u4ee5\u5728 <code>/playground/build/ipa_build/</code> \u76ee\u5f55\u4e0b\u83b7\u53d6 ipa \u6587\u4ef6\u3002</p>
+<p>\u6ce8\uff1a\u8bc1\u4e66\u9700\u8981\u9884\u5148\u5b89\u88c5\u5230 keychain \u4e2d\uff0c\u5728 keychain \u4e2d\u70b9\u51fb\u53f3\u952e\u83b7\u53d6\u8bc1\u4e66 id\uff08\u8bc1\u4e66\u540d\u79f0\uff09\u3001provisioning profile \u6587\u4ef6\uff08*mobileprovision\uff09\u9700\u8981\u83b7\u53d6 UUID\uff0c\u8fdb\u5165\u76ee\u5f55\u53ef\u4ee5\u770b\u5230 mobileprovision_UUID.sh \u6587\u4ef6\uff0c\u6b64\u6587\u4ef6\u53ef\u4ee5\u83b7\u53d6\u5230 UUID\u3002</p>
+<p>mobileprovision_UUID.sh \u7528\u6cd5\u5982\u4e0b\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">$ ./mobileprovision_UUID.sh *mobileprovision</div></pre></td></tr></table></figure>
+<p>\u53c2\u6570\uff08*mobileprovision\uff09\u4e3a provisioning profile \u6587\u4ef6\u8def\u5f84</p>
+<p><strong> \u6ce8\uff1arun \u4e0e build \u90e8\u5206\u6d89\u53ca pod \u7684\u4f9d\u8d56\u5b89\u88c5\u95ee\u9898\u3002</strong></p>
+<ul>
+<li>\u9996\u5148\u8981\u5b89\u88c5 cocoapods \uff0c\u5177\u4f53\u5b89\u88c5\u6b65\u9aa4\u53ef\u67e5\u770b<a href="https://cocoapods.org/" target="_blank" rel="external">\u8fd9\u91cc</a>\uff0c\u5efa\u8bae\u5b89\u88c5 0.39.0 \u7248\u672c\u3002</li>
+<li><p>\u4e3a\u4e86\u52a0\u5feb CLI \u6267\u884c\u901f\u5ea6\uff0cweexpack \u521b\u5efa\u7684\u5de5\u7a0b\u9ed8\u8ba4\u5b89\u88c5\u4e86\u9700\u8981\u7684\u4f9d\u8d56\u5e93\u3002\u4f46\u662f\u547d\u4ee4\u6267\u884c\u4f9d\u7136\u4f1a\u66f4\u65b0\u9700\u8981\u5347\u7ea7\u7684\u4f9d\u8d56\u5e93\u3002</p>
+<ul>
+<li>\u5982\u679c\u51fa\u73b0\u8fd9\u79cd\u9519\u8bef\u63d0\u793a <code>unable to find a specification for &#39;WeexSDK&#39;</code> \u8fd9\u79cd\u9519\u8bef\uff0c\u8bf4\u660e\u4f60\u672c\u5730\u6ca1\u6709\u66f4\u65b0 cocoapods master \u4ed3\u5e93\uff0c\u8fd0\u884c <code>pod repo update</code> \uff0c\u6b64\u65f6\u8fd0\u884c <code>pod search WeexSDK</code>\uff1a</li>
+</ul>
+<p><img src="https://img.alicdn.com/tps/TB1jLx4OFXXXXaoXFXXXXXXXXXX-212-33.png" alt="">  </p>
+<p>\u8bf4\u660e master repo \u66f4\u65b0\u6210\u529f\u3002\u4ee5\u4e0a\u662f\u4ee5 <code>WeexSDK</code> \u4e3a\u4f8b\uff0c\u5176\u4ed6\u5e93\u7c7b\u4f3c\u3002</p>
+<ul>
+<li>\u5982\u679c\u51fa\u73b0\u8fd9\u79cd\u9519\u8bef <code>error: The sandbox is not in sync with the Podfile.lock. Run &#39;pod install&#39; or update your CocoaPods installation.</code> \u8fdb\u5165 playground \u76ee\u5f55\uff08podfile \u6587\u4ef6\u6240\u5728\u76ee\u5f55\uff09\u6309\u63d0\u793a\u6267\u884c\u3002</li>
+</ul>
+<p>\u66f4\u591a pod \u4f7f\u7528\u7ec6\u8282\u8bf7\u79fb\u6b65<a href="https://cocoapods.org/" target="_blank" rel="external">cocoapods</a></p>
+</li>
+<li><p>mobileprovision\uff0c\u53c2\u6570\uff08*mobileprovision\uff09\u4e3a provisioning profile \u6587\u4ef6\u8def\u5f84\u3002</p>
+</li>
+</ul>
+<hr>
+<h2 id="Android"><a href="#Android" class="headerlink" title="Android"></a>Android</h2><p>\u5728 Mac \u5e73\u53f0\u5f00\u53d1 Android \u9996\u5148\u9700\u8981\u4e0b\u8f7d <a href="https://developer.android.com/studio/install.html" target="_blank" rel="external">Android Studio</a>\uff08\u4f60\u53ef\u80fd\u9700\u8981\u7ffb\u5899\u624d\u80fd\u8bbf\u95ee\uff09\u3002<a href="https://developer.android.com/studio/install.html" target="_blank" rel="external">Android Studio</a> \u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86 Android SDK \u53ca AVD\uff08\u6a21\u62df\u5668\uff09\u4ee5\u4fbf\u6211\u4eec\u5feb\u901f\u8fd0\u884c Android \u9879\u76ee\u3002</p>
+<p>\u4e0b\u8f7d\u5b8c\u6210\u540e\u8fd0\u884c Android Studio\uff0c\u4efb\u610f\u65b0\u5efa\u4e00\u4e2a Android \u9879\u76ee\uff0c\u5728\u7b2c\u4e8c\u6b65\u4e2d\u9009\u62e9 <strong>Android 5.1</strong>\uff0c\u7136\u540e\u70b9\u51fb next \u5b8c\u6210\u9879\u76ee\u521b\u5efa\uff0c\u5982\u56fe\u6240\u793a\uff1a</p>
+<p><img src="https://gw.alicdn.com/tps/TB1VulhOFXXXXcPXFXXXXXXXXXX-828-686.png" alt="android"> </p>
+<p>\u5f85 Android Studio \u6253\u5f00\u540e\uff0c\u5728\u9876\u90e8\u83dc\u5355\u680f\u9009\u62e9 Tools -&gt; Android -&gt; AVD Manager\uff0c\u5b89\u88c5 Android \u6a21\u62df\u5668\uff1a</p>
+<p><img src="https://img.alicdn.com/tps/TB1CBdgOFXXXXXnXVXXXXXXXXXX-661-392.jpg" alt="android"></p>
+<p>\u4e4b\u540e\uff0c\u6253\u5f00\u6a21\u62df\u5668\u8fd0\u884c Android\u3002</p>
+<p><strong>\u6ce8\u610f\uff1a</strong></p>
+<ol>
+<li>\u5fc5\u987b\u4fdd\u6301\u6a21\u62df\u5668\u8fd0\u884c\u3002</li>
+<li>\u4fdd\u8bc1 Android build-tool \u7684\u7248\u672c\u4e3a 23.0\u3002\u3010\u53ef\u4ee5\u5728 Android Studio \u7684 SDK Manager \u91cc\u67e5\u770b\u662f\u5426\u5df2\u5b89\u88c5\u8fd9\u4e2a\u7248\u672c\uff0c\u5982\u679c\u6ca1\u6709\u53ef\u9009\u62e9\u5b89\u88c5\u8fd9\u4e00\u7248\u672c\u3011\u3002</li>
+</ol>
+<h3 id="\u914d\u7f6e\u73af\u5883\u53d8\u91cf"><a href="#\u914d\u7f6e\u73af\u5883\u53d8\u91cf" class="headerlink" title="\u914d\u7f6e\u73af\u5883\u53d8\u91cf"></a>\u914d\u7f6e\u73af\u5883\u53d8\u91cf</h3><p>\u56e0\u4e3a Android Studio \u5b89\u88c5\u7684 SDK \u4e0d\u4f1a\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff08\u4f60\u81ea\u5df1\u5b89\u88c5\u7684 SDK \u540c\u6837\u4e0d\u4f1a\uff09\u3002\u6240\u4ee5\u9700\u8981\u60a8\u81ea\u5df1\u624b\u52a8\u914d\u7f6e Android_HOME \u73af\u5883\u53d8\u91cf\u548c PATH </p>
+<p>\u5982\u679c\u662f Android Studio \u5b89\u88c5\u7684 SDK \u5b89\u88c5\u8def\u5f84\u53ef\u5df2\u5728 SDK manager \u91cc\u627e\u5230\uff08\u6253\u5f00 SDK manager \u7684\u65b9\u5f0f\u8bf7\u53c2\u7167\u56fe2\uff09</p>
+<p>Windows \u4e0b\u8bf7\u53c2\u7167 <a href="http://jingyan.baidu.com/article/09ea3ede1b4df6c0aede39ab.html" target="_blank" rel="external">window \u4e0b\u5982\u4f55\u8bbe\u7f6e ANDROID \u73af\u5883\u53d8\u91cf</a></p>
+<p>Linux/Mac \u4e0b\u53ea\u9700\u7f16\u8f91 <code>.bash_profile</code> \u589e\u52a0 PATH \u5373\u53ef\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">vim ~/.bash_profile</div></pre></td></tr></table></figure>
+<p>\u7136\u540e\u6dfb\u52a0\u4e0b\u5217\u4ee3\u7801\u8fdb\u53bb\uff08\u8def\u5f84\u66ff\u6362\u4e3a\u4f60\u7684\u771f\u5b9e\u8def\u5f84\uff09</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line"><span class="built_in">export</span> ANDROID_HOME=/xxx/Library/Android/sdk</div><div class="line"><span class="built_in">export</span> PATH=<span class="variable">$&#123;PATH&#125;</span>:<span class="variable">$ANDROID_HOME</span>/tools:<span class="variable">$ANDROID_HOME</span>/platform-tools:<span class="variable">$ANDROID_HOME</span>/build-tools</div></pre></td></tr></table></figure>
+<p>\u7136\u540e\u4fdd\u5b58\u9000\u51fa\uff08:wq\uff09\u3002\u518d\u6267\u884c\u4e0b\u5217\u547d\u4ee4\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line"><span class="built_in">source</span> ~/.bash_profile</div></pre></td></tr></table></figure>
+<h3 id="\u521b\u5efa\u9879\u76ee-1"><a href="#\u521b\u5efa\u9879\u76ee-1" class="headerlink" title="\u521b\u5efa\u9879\u76ee"></a>\u521b\u5efa\u9879\u76ee</h3><p>\u7136\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528 weexpack \u521b\u5efa weex \u5de5\u7a0b\u4e86\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">$ weexpack init appName</div></pre></td></tr></table></figure>
+<p>weexpack \u4f1a\u81ea\u52a8\u65b0\u5efa\u4ee5 appName \u547d\u540d\u7684\u76ee\u5f55\uff0c\u5e76\u5c06\u9879\u76ee\u6a21\u677f\u62c9\u53d6\u5230\u8be5\u76ee\u5f55\u3002</p>
+<p>\u6700\u7ec8\u5f62\u6210\u5982\u4e0b\u76ee\u5f55\u7ed3\u6784\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">-&gt; /appName</div><div class="line">.</div><div class="line">|\u2014\u2014 .gitignore</div><div class="line">|\u2014\u2014 README.md</div><div class="line">|\u2014\u2014 package.json</div><div class="line">|-- android.config.json</div><div class="line">|-- ios.config.json</div><div class="line">|\u2014\u2014 webpack.config.js</div><div class="line">|\u2014\u2014 /src</div><div class="line">|     |\u2014\u2014 index.we</div><div class="line">|\u2014\u2014 /html5</div><div class="line">|     |\u2014\u2014 index.html</div><div class="line">|\u2014\u2014 /ios</div><div class="line">|     |\u2014\u2014 /playground</div><div class="line">|     |\u2014\u2014 /sdk</div><div class="line">|     |\u2014\u2014 /WXDevtool</div><div class="line">|\u2014\u2014 /android</div><div class="line">|     |\u2014\u2014 /playground</div><div class="line">|     |\u2014\u2014 /appframework</div></pre></td></tr></table></figure>
+<p>\u5176\u4e2d\uff1a</p>
+<ul>
+<li><code>webpack.config.js</code> \u662f webpack \u914d\u7f6e\u6587\u4ef6\uff0c\u7528\u4e8e\u751f\u6210 <code>.we</code> \u6587\u4ef6\u7684 JSBunlde</li>
+<li><code>ios.config.json</code> \u662f iOS \u9879\u76ee\u914d\u7f6e\u6587\u4ef6</li>
+<li><code>android.config.json</code> \u662f Android \u9879\u76ee\u914d\u7f6e\u6587\u4ef6</li>
+<li><code>/src</code> \u76ee\u5f55\u653e\u7f6e Weex \u9875\u9762</li>
+<li><code>/html5</code> \u662f H5 \u7aef\u5165\u53e3\u6587\u4ef6</li>
+<li><code>/ios</code> \u653e\u7f6e iOS \u9879\u76ee</li>
+<li><code>/android</code> \u653e\u7f6e Android \u9879\u76ee</li>
+</ul>
+<p>\u7d27\u63a5\u7740\uff0c\u8fdb\u5165\u76ee\u5f55\uff0c\u5e76\u4e14\u5b89\u88c5\u4f9d\u8d56\uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">$ <span class="built_in">cd</span> appName &amp;&amp; npm install</div></pre></td></tr></table></figure>
+<p>\u81f3\u6b64\uff0c\u9879\u76ee\u6a21\u7248\u521b\u5efa\u5b8c\u6210\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u53ef\u4ee5\u81ea\u5b9a\u4e49\u6211\u4eec\u7684 APP \u4fe1\u606f\u5e76\u6253\u5305\u8fd0\u884c\u3002</p>
+<h3 id="\u8fd0\u884c\u4e0e\u6253\u5305-1"><a href="#\u8fd0\u884c\u4e0e\u6253\u5305-1" class="headerlink" title="\u8fd0\u884c\u4e0e\u6253\u5305"></a>\u8fd0\u884c\u4e0e\u6253\u5305</h3><p>\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 weexpack \u6253\u5305\u6216\u6a21\u62df\u5668\u8fd0\u884c\u4e86\uff1a</p>
+<p>Android \u7684\u6253\u5305\u548c\u6784\u5efa\u662f\u4e00\u4f53\u7684 \uff1a</p>
+<figure class="highlight bash"><table><tr><td class="code"><pre><div class="line">$ weexpack run android</div></pre></td></tr></table></figure>
+<p>\u540c\u6837\u7684\u4f60\u53ef\u4ee5\u66f4\u6539\u9879\u76ee\u76ee\u5f55\u4e0b\u7684android.config.json</p>
+<ul>
+<li><code>AppName</code>: \u5e94\u7528\u540d</li>
+<li><code>AppId</code>: application_id \u5305\u540d</li>
+<li><code>SplashText</code>: \u6b22\u8fce\u9875\u4e0a\u9762\u7684\u6587\u5b57</li>
+<li><p><code>WeexBundle</code>: \u6307\u5b9a\u7684 weex bundle \u6587\u4ef6\uff08\u652f\u6301\u6587\u4ef6\u540d\u548c url \u7684\u5f62\u5f0f\uff09</p>
+<p>\u6307\u5b9a\u6587\u4ef6\u540d\u5219\u4ee5\u672c\u5730\u6587\u4ef6\u7684\u65b9\u5f0f\u52a0\u8f7d bundle\uff0c\u6307\u5b9a url \u5219\u4ee5\u8fdc\u7a0b\u7684\u65b9\u5f0f\u52a0\u8f7d JSBundle\u3002\u5982\u679c\u4ee5\u672c\u5730\u65b9\u5f0f\u6307\u5b9a bundle <code>.we</code> \u6587\u4ef6\u8bf7\u653e\u5230 <code>src</code> \u76ee\u5f55\u3002</p>
+</li>
+</ul>
+
+  </div>
+  
+</article>
+</div>
+  
+  <footer id="footer">
+  <div class="row clearfix">
+    <div class="ali-logo">
+      <img src="//gw.alicdn.com/tps/TB1Ef93PXXXXXaXXpXXXXXXXXXX-252-126.png" alt="Alibaba">
+    </div>
+    <div class="dropdown select-lang">
+      <a href="javascript:;" class="dropdown-toggle">
+        Language
+        <span class="caret"></span>
+      </a>
+      <ul class="dropdown-menu">
+        <li>
+          <a href="/v-0.10/advanced/create-a-weex-project.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/v-0.10/advanced/create-a-weex-project.html">\u4e2d\u6587</a>
+        </li>
+      </ul>
+    </div>
+  </div>
+  <div class="row">
+    <p><span>Released under </span><a href="">Apache License 2.0</a></p>
+  </div>
+  <div class="row clearfix">
+    <div class="cell"><span>Copyright(c) 2016 </span><a href="https://www.alibaba.com">Alibaba</a></div>
+    <div class="cell"><span>GroupMade by </span><a href="">\u963f\u91cc\u4e91UED AX</a></div>
+  </div>
+</footer>
+  <div style="display: none;">
+  <script src="//s95.cnzz.com/z_stat.php?id=1261102667&amp;web_id=1261102667" 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/14041490/content/cn/v-0.10/advanced/customize-a-native-component.html
----------------------------------------------------------------------
diff --git a/content/cn/v-0.10/advanced/customize-a-native-component.html b/content/cn/v-0.10/advanced/customize-a-native-component.html
new file mode 100644
index 0000000..e699e8f
--- /dev/null
+++ b/content/cn/v-0.10/advanced/customize-a-native-component.html
@@ -0,0 +1,439 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  
+  <title>\u81ea\u5b9a\u4e49 native \u7ec4\u4ef6 | Weex</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+  <meta name="description" content="\u5982\u4f55\u81ea\u5b9a\u4e49 native \u7ec4\u4ef6\uff1fWeex \u5df2\u7ecf\u5305\u542b\u4e86\u6700\u5173\u952e\u7684\u5e73\u53f0\u7ec4\u4ef6\uff0c\u4f8b\u5982 ScrollView, ListView, Text, Imageview \u7b49\u7b49\u3002\u5f53\u7136\uff0c\u8fd9\u4e9b\u7ec4\u4ef6\u5e76\u4e0d\u80fd\u5b8c\u5168\u6ee1\u8db3\u4f60\u7684\u9700\u6c42\u3002\u53e6\u5916\uff0c\u90a3\u4e9b\u5728\u4f60\u7684\u5de5\u7a0b\u4e2d\u5e38\u7528\u7684\u5927\u91cf\u539f\u751f UI \u7ec4\u4ef6\uff0c\u53ef\u80fd\u9700\u8981\u88ab\u7b80\u5355\u5730\u96c6\u5408\u5230 Weex \u4e2d\u3002\u5e78\u8fd0\u7684\u662f\uff0c\u901a\u8fc7\u4efb\u610f\u5df2\u5b58\u5728\u7684\u7ec4\u4ef6\u6765\u521b\u5efa\u4f60\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u662f\u4e00\u4ef6\u5f88\u65b9\u4fbf\u7684\u4e8b\u3002
+Android\u6b65\u9aa4\uff1a1.\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5fc5\u987b\u7ee7\u627f\u81ea">
+<meta property="og:type" content="website">
+<meta property="og:title" content="\u81ea\u5b9a\u4e49 native \u7ec4\u4ef6">
+<meta property="og:url" content="https://weex.apache.org/cn/v-0.10/advanced/customize-a-native-component.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u5982\u4f55\u81ea\u5b9a\u4e49 native \u7ec4\u4ef6\uff1fWeex \u5df2\u7ecf\u5305\u542b\u4e86\u6700\u5173\u952e\u7684\u5e73\u53f0\u7ec4\u4ef6\uff0c\u4f8b\u5982 ScrollView, ListView, Text, Imageview \u7b49\u7b49\u3002\u5f53\u7136\uff0c\u8fd9\u4e9b\u7ec4\u4ef6\u5e76\u4e0d\u80fd\u5b8c\u5168\u6ee1\u8db3\u4f60\u7684\u9700\u6c42\u3002\u53e6\u5916\uff0c\u90a3\u4e9b\u5728\u4f60\u7684\u5de5\u7a0b\u4e2d\u5e38\u7528\u7684\u5927\u91cf\u539f\u751f UI \u7ec4\u4ef6\uff0c\u53ef\u80fd\u9700\u8981\u88ab\u7b80\u5355\u5730\u96c6\u5408\u5230 Weex \u4e2d\u3002\u5e78\u8fd0\u7684\u662f\uff0c\u901a\u8fc7\u4efb\u610f\u5df2\u5b58\u5728\u7684\u7ec4\u4ef6\u6765\u521b\u5efa\u4f60\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u662f\u4e00\u4ef6\u5f88\u65b9\u4fbf\u7684\u4e8b\u3002
+Android\u6b65\u9aa4\uff1a1.\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5fc5\u987b\u7ee7\u627f\u81ea">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.922Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="\u81ea\u5b9a\u4e49 native \u7ec4\u4ef6">
+<meta name="twitter:description" content="\u5982\u4f55\u81ea\u5b9a\u4e49 native \u7ec4\u4ef6\uff1fWeex \u5df2\u7ecf\u5305\u542b\u4e86\u6700\u5173\u952e\u7684\u5e73\u53f0\u7ec4\u4ef6\uff0c\u4f8b\u5982 ScrollView, ListView, Text, Imageview \u7b49\u7b49\u3002\u5f53\u7136\uff0c\u8fd9\u4e9b\u7ec4\u4ef6\u5e76\u4e0d\u80fd\u5b8c\u5168\u6ee1\u8db3\u4f60\u7684\u9700\u6c42\u3002\u53e6\u5916\uff0c\u90a3\u4e9b\u5728\u4f60\u7684\u5de5\u7a0b\u4e2d\u5e38\u7528\u7684\u5927\u91cf\u539f\u751f UI \u7ec4\u4ef6\uff0c\u53ef\u80fd\u9700\u8981\u88ab\u7b80\u5355\u5730\u96c6\u5408\u5230 Weex \u4e2d\u3002\u5e78\u8fd0\u7684\u662f\uff0c\u901a\u8fc7\u4efb\u610f\u5df2\u5b58\u5728\u7684\u7ec4\u4ef6\u6765\u521b\u5efa\u4f60\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u662f\u4e00\u4ef6\u5f88\u65b9\u4fbf\u7684\u4e8b\u3002
+Android\u6b65\u9aa4\uff1a1.\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5fc5\u987b\u7ee7\u627f\u81ea">
+  
+    <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="advanced" class="lang-cn">
+  
+  <script>
+    window.PAGE_TYPE = "advanced";
+    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">\u6559\u7a0b</a></li>
+        <li><a href="/cn/references">\u624b\u518c</a></li>
+        <li><a href="/cn/faq.html">FAQ</a></li>
+        <li class="dropdown">
+            <a href="javascript:;">\u4e0b\u8f7d</a>
+            <ul class="dropdown-menu subnav">
+              <li>
+                <a href="/cn/playground.html">Playground</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weex-devtool" target="_blank">Devtool</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weexpack" target="_blank">Weexpack</a>
+              </li>
+              <li>
+                <a href="http://dotwe.org" target="_blank">Snippets</a>
+              </li>
+              <li>
+                <a href="https://market.weex-project.io/" target="_blank">Market</a>
+              </li>
+            </ul>
+        </li>
+      </ul>
+      <ul class="info">
+        <li><a href="https://github.com/alibaba/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"> <!-- \u641c\u7d22\u6846\u76f8\u5173 -->
+    <input type="text" id="search-input-header" name="q" results="0" placeholder="search..." class="form-control search-input" autocomplete="off" autocorrect="off"/>
+    <span class="iconfont icon-search"></span>
+  </form>
+  <div class="results-panel">
+  </div>
+</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">
+    
+      <ul class="main-nav">
+        <li>
+          <div class="search">
+  <form id="search-form" class="search-form"> <!-- \u641c\u7d22\u6846\u76f8\u5173 -->
+    <input type="text" id="search-input-sidebar" name="q" results="0" placeholder="search..." class="form-control search-input" autocomplete="off" autocorrect="off"/>
+    <span class="iconfont icon-search"></span>
+  </form>
+  <div class="results-panel">
+  </div>
+</div>
+        </li>
+        <li>
+          <a class="" href="/cn/guide">
+            \u6559\u7a0b
+          </a>
+        </li>
+        <li>
+          <a class="" href="/cn/references">
+            \u624b\u518c
+          </a>
+        </li>
+        <li>
+          <a href="/cn/faq">
+            FAQ
+          </a>
+        </li>
+        <li>
+            <p>\u4e0b\u8f7d</p>
+            <ul class="subnav">
+              <li>
+                <a href="/cn/playground.html">Playground</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weex-devtool" target="_blank">Devtool</a>
+              </li>
+              <li>
+                <a href="https://www.npmjs.com/package/weexpack" target="_blank">Weexpack</a>
+              </li>
+              <li>
+                <a href="http://dotwe.org" target="_blank">Snippets</a>
+              </li>
+              </li>
+              <li>
+                <a href="https://market.weex-project.io/" target="_blank">Market</a>
+              </li>
+            </ul>
+        </li>
+        <li>
+          <a href="https://github.com/alibaba/weex" target="_blank">
+            GitHub
+          </a>
+        </li>
+      </ul>
+    
+    <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">
+    
+      \u9ad8\u9636\u77e5\u8bc6
+    
+  </h2>
+  <ul class="doc-summary">
+    
+    
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+      
+      
+        
+      
+    
+   
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/index.html" class="sidebar-link  ">Weex \u5de5\u4f5c\u539f\u7406</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/how-data-binding-works.html" class="sidebar-link  ">\u6570\u636e\u7ed1\u5b9a\u539f\u7406</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/create-a-weex-project.html" class="sidebar-link  ">\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Weex \u9879\u76ee</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/integrate-to-android.html" class="sidebar-link  ">\u96c6\u6210\u5230 Android</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/integrate-to-ios.html" class="sidebar-link  ">\u96c6\u6210\u5230 iOS</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/integrate-to-html5.html" class="sidebar-link  ">\u96c6\u6210\u5230 web</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/customize-a-native-component.html" class="sidebar-link current ">\u81ea\u5b9a\u4e49 native \u7ec4\u4ef6</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/cuszomize-native-apis.html" class="sidebar-link  ">\u81ea\u5b9a\u4e49 native API</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/extend-to-android.html" class="sidebar-link  ">Android \u6269\u5c55</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/extend-to-ios.html" class="sidebar-link  ">iOS \u6269\u5c55</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/extend-to-html5.html" class="sidebar-link  ">weex-html5 \u6269\u5c55</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/integrate-devtools-to-android.html" class="sidebar-link  ">\u96c6\u6210 Devtools \u5230 Android</a></h3>
+        
+      </li>
+    
+      <li>
+        <h3 class="chapter-title"><a href="/cn/v-0.10/advanced/integrate-devtools-to-ios.html" class="sidebar-link  ">\u96c6\u6210 Devtools \u5230 iOS</a></h3>
+        
+      </li>
+    
+    
+    
+  </ul>
+</div>
+  </div>
+  
+
+<article class="article article-type-advanced">
+  <div class="article-entry" itemprop="articleBody">
+    <header class="article-header">
+  
+    
+      <h1 class="article-title" itemprop="name">
+        \u81ea\u5b9a\u4e49 native \u7ec4\u4ef6
+      </h1>
+    
+  
+  <time class="article-date" datetime="2017-02-01T06:23:21.922Z">Updated time: 01/02/2017</time>
+</header>
+    <h1 id="\u5982\u4f55\u81ea\u5b9a\u4e49-native-\u7ec4\u4ef6\uff1f"><a href="#\u5982\u4f55\u81ea\u5b9a\u4e49-native-\u7ec4\u4ef6\uff1f" class="headerlink" title="\u5982\u4f55\u81ea\u5b9a\u4e49 native \u7ec4\u4ef6\uff1f"></a>\u5982\u4f55\u81ea\u5b9a\u4e49 native \u7ec4\u4ef6\uff1f</h1><p>Weex \u5df2\u7ecf\u5305\u542b\u4e86\u6700\u5173\u952e\u7684\u5e73\u53f0\u7ec4\u4ef6\uff0c\u4f8b\u5982 <code>ScrollView, ListView, Text, Imageview</code> \u7b49\u7b49\u3002\u5f53\u7136\uff0c\u8fd9\u4e9b\u7ec4\u4ef6\u5e76\u4e0d\u80fd\u5b8c\u5168\u6ee1\u8db3\u4f60\u7684\u9700\u6c42\u3002\u53e6\u5916\uff0c\u90a3\u4e9b\u5728\u4f60\u7684\u5de5\u7a0b\u4e2d\u5e38\u7528\u7684\u5927\u91cf\u539f\u751f UI \u7ec4\u4ef6\uff0c\u53ef\u80fd\u9700\u8981\u88ab\u7b80\u5355\u5730\u96c6\u5408\u5230 Weex \u4e2d\u3002\u5e78\u8fd0\u7684\u662f\uff0c\u901a\u8fc7\u4efb\u610f\u5df2\u5b58\u5728\u7684\u7ec4\u4ef6\u6765\u521b\u5efa\u4f60\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u662f\u4e00\u4ef6\u5f88\u65b9\u4fbf\u7684\u4e8b\u3002</p>
+<h2 id="Android"><a href="#Android" class="headerlink" title="Android"></a>Android</h2><h3 id="\u6b65\u9aa4\uff1a"><a href="#\u6b65\u9aa4\uff1a" class="headerlink" title="\u6b65\u9aa4\uff1a"></a>\u6b65\u9aa4\uff1a</h3><p>1.\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5fc5\u987b\u7ee7\u627f\u81ea <code>WXComponent</code> \u6216\u8005 <code>WXContainer</code> \uff1b<br>2.weex SDK \u53ef\u4ee5\u8bc6\u522b @WXComponentProp (name = value(value \u662f attr \u6216\u8005 dsl style))\uff1b<br>3.\u65b9\u6cd5\u5fc5\u987b\u662f <code>public</code> \u7684\uff1b<br>4.\u7ec4\u4ef6\u7c7b\u4e0d\u80fd\u662f\u4e00\u4e2a\u5185\u90e8\u7c7b\uff1b<br>5.\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u4e0d\u80fd\u88ab ProGuard \u4e4b\u7c7b\u7684\u5de5\u5177\u6df7\u6dc6\uff1b<br>6.\u7ec4\u4ef6\u65b9\u6cd5\u5728 UI \u7ebf\u7a0b\u88ab\u8c03\u7528\uff0c\u56e0\u6b64\u4e0d\u8981\u5728\u91cc\u9762\u8fdb\u884c\u8017\u65f6\u7684\u64cd\u4f5c\uff1b<br>7.Weex \u7684\u53c2\u6570\u7c7b\u578b\u53ef\u4ee5\u662f int, double, float, String, Map, List \u548c\u5b9e\u73b0\u4e86 WXObject \u63a5\u53e3\u7684\u81ea\u5b9a\u4e49\u7c7b\uff1b</p>
+<h3 id="\u53c2\u8003\u4ee5\u4e0b\u4f8b\u5b50\uff1a"><a href="#\u53c2\u8003\u4ee5\u4e0b\u4f8b\u5b50\uff1a" class="headerlink" title="\u53c2\u8003\u4ee5\u4e0b\u4f8b\u5b50\uff1a"></a>\u53c2\u8003\u4ee5\u4e0b\u4f8b\u5b50\uff1a</h3><figure class="highlight java"><table><tr><td class="code"><pre><div class="line"> `<span class="keyword">package</span> com.taobao.weex.ui.component;</div><div class="line"><span class="comment">// \u2026\u2026</span></div><div class="line"></div><div class="line"><span class="keyword">public</span> <span class="class"><span class="keyword">class</span>  <span class="title">MyViewComponent</span> <span class="keyword">extends</span> <span class="title">WXComponent</span></span>&#123;</div><div class="line"></div><div class="line">       <span class="function"><span class="keyword">public</span> <span class="title">MyViewComponent</span><span class="params">(WXSDKInstance instance, WXDomObject node, </span></span></div><div class="line">                    WXVContainer parent,  String instanceId, <span class="keyword">boolean</span> lazy) &#123;   
              </div><div class="line">           <span class="keyword">super</span>(instance, node, parent, instanceId, lazy);</div><div class="line">        &#125;</div><div class="line"></div><div class="line">       <span class="meta">@Override</span></div><div class="line">       <span class="function"><span class="keyword">protected</span> <span class="keyword">void</span> <span class="title">initView</span><span class="params">()</span> </span>&#123;</div><div class="line">          <span class="comment">//<span class="doctag">TODO:</span>your own code \u2026\u2026</span></div><div class="line">       &#125;</div><div class="line"></div><div class="line">      <span class="meta">@Override</span></div><div class="line">      <span class="function"><span class="keyword">public</span> WXFrameLayout <span class="title">getView</span><span class="params">()</span> </span>&#123;</div><div class="line">         <span class="comment">//<span class="doctag">TODO:</span>your own code \u2026\u2026\u2026
         </span></div><div class="line">      &#125;</div><div class="line">      <span class="meta">@WXComponentProp</span>(name=WXDomPropConstant.WX_ATTR_VALUE)</div><div class="line">      <span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">setMyViewValue</span><span class="params">(String value)</span> </span>&#123;</div><div class="line">         ((TextView)mHost).setText(value);</div><div class="line">      &#125;</div><div class="line"></div><div class="line">&#125;</div></pre></td></tr></table></figure>
+<p>\u5fc5\u987b\u6ce8\u518c\u7ec4\u4ef6\uff1a</p>
+<figure class="highlight java"><table><tr><td class="code"><pre><div class="line">WXSDKEngine.registerComponent(<span class="string">"MyView"</span>, MyViewComponent.class);</div></pre></td></tr></table></figure>
+<h2 id="iOS"><a href="#iOS" class="headerlink" title="iOS"></a>iOS</h2><p>\u867d\u7136 WeexSDK \u4e2d\u6709\u5f88\u591a\u7684 native \u7684 Component\uff0c\u4f46\u8fd9\u6709\u53ef\u80fd\u5e76\u4e0d\u80fd\u6ee1\u8db3\u4f60\u7684\u9700\u6c42\u3002\u5728\u4e4b\u524d\u4f60\u53ef\u80fd\u5df2\u7ecf\u5199\u4e86\u4e00\u4e9b\u5f88\u9177\u70ab native \u7684\u7ec4\u4ef6\uff0c\u60f3\u5305\u88c5\u4e00\u4e0b\uff0c\u5bfc\u5165\u5230 Weex \u4e2d\uff0c\u56e0\u6b64\u6211\u4eec\u63d0\u4f9b\u4e86\u8ba9\u5f00\u53d1\u8005\u5b9e\u73b0\u81ea\u5df1\u7684 native Component\u3002\u4e0b\u9762\u5c06\u4ee5 WeexSDK \u4e2d\u5df2\u7ecf\u5b58\u5728\u7684 Component\uff1a<code>image</code> \u4e3a\u4f8b\u5b50\uff0c\u4ecb\u7ecd\u4e00\u4e0b\u5982\u4f55\u6784\u5efa\u4e00\u4e2a native Component\u3002\u5047\u8bbe\u4f60\u5df2\u7ecf\u4e86\u89e3 iOS \u5f00\u53d1</p>
+<h3 id="\u6ce8\u518c-Component"><a href="#\u6ce8\u518c-Component" class="headerlink" title="\u6ce8\u518c Component"></a>\u6ce8\u518c Component</h3><p>\u6ce8\u518c\u4e00\u4e2a component \u6bd4\u8f83\u7b80\u5355\uff0c\u8c03\u7528 <code>WXSDKEngine</code> \u4e2d\u7684 <code>registerComponent:withClass:</code> \u65b9\u6cd5\uff0c\u4f20\u5165\u7ec4\u4ef6\u7684\u6807\u7b7e\u540d\u79f0\uff0c\u8fd8\u6709\u5bf9\u5e94\u7684 class  \u7136\u540e\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a <code>WXImageComponent</code> \u8868\u793a <code>image</code> \u7ec4\u4ef6\u7684\u5b9e\u73b0\u3002\u5728 <code>.we</code> \u6587\u4ef6\u4e2d\uff0c\u53ea\u9700\u8981\u5199 <code>&lt;image&gt;&lt;/image&gt;</code></p>
+<h3 id="\u6dfb\u52a0\u5c5e\u6027"><a href="#\u6dfb\u52a0\u5c5e\u6027" class="headerlink" title="\u6dfb\u52a0\u5c5e\u6027"></a>\u6dfb\u52a0\u5c5e\u6027</h3><p>\u73b0\u5728\u6211\u4eec\u8981\u505a\u4e00\u4e9b\u8ba9 image component \u66f4\u52a0\u5f3a\u5927\u7684\u4e8b\u60c5\u3002\u65e2\u7136\u4f5c\u4e3a\u4e00\u4e2a\u56fe\u7247\u7684 component\uff0c\u90a3\u5b83\u5e94\u8be5\u8981\u6709\u6e90\uff0c\u7ed9\u4ed6\u52a0\u4e0a\u4e00\u4e2a  <code>src</code> \u7684\u5c5e\u6027\uff0c\u540c\u65f6\u7ed9\u5b83\u52a0\u4e0a\u4e00\u4e2a <code>resize</code> \u7684\u5c5e\u6027\uff08\u53ef\u4ee5\u914d\u7f6e\u7684\u6709 <code>contain/cover/stretch</code>\uff09</p>
+<figure class="highlight plain"><table><tr><td class="code"><pre><div class="line">@interface WXImageComponent ()</div><div class="line"></div><div class="line">@property (nonatomic, strong) NSString *imageSrc;</div><div class="line">@property (nonatomic, assign) UIViewContentMode resizeMode;</div><div class="line"></div><div class="line">@end</div></pre></td></tr></table></figure>
+<p>component \u4e2d\u6240\u6709\u7684 style\uff0cattribute\uff0cevents \u90fd\u4f1a\u88ab\u4f20\u9012\u5230 Component \u7684\u521d\u59cb\u5316\u65b9\u6cd5\u4e2d\uff0c\u6240\u4ee5\uff0c\u4f60\u53ef\u4ee5\u5728\u521d\u59cb\u5316\u65b9\u6cd5\u4e2d\u5b58\u50a8\u4f60\u611f\u5174\u8da3\u7684\u4e00\u4e9b\u5c5e\u6027\u503c</p>
+<figure class="highlight plain"><table><tr><td class="code"><pre><div class="line">@implementation WXImageComponent</div><div class="line"></div><div class="line">- (instancetype)initWithRef:(NSString *)ref type:(NSString *)type styles:(NSDictionary *)styles attributes:(NSDictionary *)attributes events:(NSArray *)events weexInstance:(WXSDKInstance *)weexInstance</div><div class="line">&#123;</div><div class="line">    if (self = [super initWithRef:ref type:type styles:styles attributes:attributes events:events weexInstance:weexInstance]) &#123;</div><div class="line">        _imageSrc = [WXConvert NSString:attributes[@&quot;src&quot;]];</div><div class="line">        _resizeMode = [WXConvert UIViewContentMode:attributes[@&quot;resize&quot;]];</div><div class="line">&#125;</div><div class="line"></div><div class="line">    return self;</div><div class="line">&#125;</div><div class="line"></div><div class="line">@end</div></pre></td></tr></table></figure>
+<p>attribute \u4e2d\u62ff\u5230\u7684\u503c\u7684\u7c7b\u578b\u90fd\u662f <code>id</code>\uff0c\u6211\u4eec\u53ef\u4ee5\u7528\u8f6c\u6362\u65b9\u6cd5\u628a\u5b83\u8f6c\u6362\u5230\u4efb\u4f55\u503c\u3002Weex SDK \u63d0\u4f9b\u4e86\u4e00\u4e9b\u57fa\u7840\u7684\u8f6c\u6362\u65b9\u6cd5\uff0c\u53ef\u4ee5\u53c2\u8003 <code>WXConvert</code> \u7c7b\uff0c\u6216\u8005\u4f60\u53ef\u4ee5\u6dfb\u52a0\u81ea\u5df1\u7684\u8f6c\u6362\u51fd\u6570\u3002</p>
+<h3 id="Hooking-\u6e32\u67d3\u751f\u547d\u5468\u671f"><a href="#Hooking-\u6e32\u67d3\u751f\u547d\u5468\u671f" class="headerlink" title="Hooking \u6e32\u67d3\u751f\u547d\u5468\u671f"></a>Hooking \u6e32\u67d3\u751f\u547d\u5468\u671f</h3><p>native \u7684 component \u662f\u7531 Weex \u7ba1\u7406\u7684\uff0cWeex \u521b\u5efa\uff0c\u5e03\u5c40\uff0c\u6e32\u67d3\uff0c\u9500\u6bc1\u3002Weex \u7684 component \u751f\u547d\u5468\u671f\u90fd\u662f\u53ef\u4ee5 hook \u7684\uff0c\u4f60\u53ef\u4ee5\u5728\u8fd9\u4e9b\u751f\u547d\u5468\u671f\u4e2d\u53bb\u505a\u81ea\u5df1\u7684\u4e8b\u60c5\u3002</p>
+<table>
+<thead>
+<tr>
+<th style="text-align:center">\u65b9\u6cd5</th>
+<th>\u63cf\u8ff0</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td style="text-align:center">initWithRef:type:\u2026</td>
+<td>\u7528\u7ed9\u5b9a\u7684\u5c5e\u6027\u521d\u59cb\u5316\u4e00\u4e2acomponent.</td>
+</tr>
+<tr>
+<td style="text-align:center">layoutDidFinish</td>
+<td>\u5728component\u5b8c\u6210\u5e03\u5c40\u65f6\u5019\u4f1a\u8c03\u7528.</td>
+</tr>
+<tr>
+<td style="text-align:center">loadView</td>
+<td>\u521b\u5efacomponent\u7ba1\u7406\u7684view.</td>
+</tr>
+<tr>
+<td style="text-align:center">viewWillLoad</td>
+<td>\u5728component\u7684view\u52a0\u8f7d\u4e4b\u524d\u4f1a\u8c03\u7528.</td>
+</tr>
+<tr>
+<td style="text-align:center">viewDidLoad</td>
+<td>\u5728component\u7684view\u52a0\u8f7d\u5b8c\u4e4b\u540e\u8c03\u7528.</td>
+</tr>
+<tr>
+<td style="text-align:center">viewWillUnload</td>
+<td>\u5728component\u7684view\u88ab\u91ca\u653e\u4e4b\u524d\u8c03\u7528.</td>
+</tr>
+<tr>
+<td style="text-align:center">viewDidUnload</td>
+<td>\u5728component\u7684view\u88ab\u91ca\u653e\u4e4b\u540e\u8c03\u7528.</td>
+</tr>
+<tr>
+<td style="text-align:center">updateStyles:</td>
+<td>\u5728component\u7684style\u66f4\u65b0\u65f6\u5019\u8c03\u7528.</td>
+</tr>
+<tr>
+<td style="text-align:center">updateAttributes:</td>
+<td>\u5728component\u7684attribute\u66f4\u65b0\u65f6\u5019\u8c03\u7528.</td>
+</tr>
+<tr>
+<td style="text-align:center">addEvent:</td>
+<td>\u7ed9component\u6dfb\u52a0event\u7684\u65f6\u5019\u8c03\u7528.</td>
+</tr>
+<tr>
+<td style="text-align:center">removeEvent:</td>
+<td>\u5728event\u79fb\u9664\u7684\u65f6\u5019\u8c03\u7528.</td>
+</tr>
+</tbody>
+</table>
+<p>\u5728 image component \u7684\u4f8b\u5b50\u91cc\u9762\uff0c\u5982\u679c\u6211\u4eec\u9700\u8981\u6211\u4eec\u81ea\u5df1\u7684 image view \u7684\u8bdd\uff0c\u53ef\u4ee5\u590d\u5199 <code>loadView</code>\u8fd9\u4e2a\u65b9\u6cd5.</p>
+<figure class="highlight plain"><table><tr><td class="code"><pre><div class="line">- (UIView *)loadView</div><div class="line">&#123;</div><div class="line">return [[WXImageView alloc] init];</div><div class="line">&#125;</div></pre></td></tr></table></figure>
+<p>\u73b0\u5728\u6211\u4eec\u4f7f\u7528 <code>WXImageView</code> \u6e32\u67d3 <code>image</code> component\u3002<br>\u4f5c\u4e3a\u4e00\u4e2a image component\uff0c\u6211\u4eec\u9700\u8981\u62ff\u5230\u670d\u52a1\u5668\u56fe\u7247\uff0c\u800c\u4e14\u628a\u5b83\u8bbe\u7f6e\u8fdb image view \u91cc. \u8fd9\u4e2a\u64cd\u4f5c\u53ef\u4ee5\u5728 <code>viewDidLoad</code> \u65b9\u6cd5\u4e2d\u505a\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u662f\u5728 view \u5df2\u7ecf\u88ab\u521b\u5efa\u800c\u4e14\u52a0\u8f7d\u4e86\u65f6\u5019 Weex SDK \u4f1a\u8c03\u7528\u5230\uff0c\u800c\u4e14 <code>viewDidLoad</code> \u8fd9\u4e2a\u65b9\u6cd5\u662f\u4f60\u505a\u989d\u5916\u521d\u59cb\u5316\u5de5\u4f5c\u6bd4\u5982\u6539\u53d8 content mode(\u4e5f\u5c31\u662f\u8bbe\u7f6eresize) \u7684\u6700\u597d\u65f6\u95f4.</p>
+<figure class="highlight plain"><table><tr><td class="code"><pre><div class="line">- (void)viewDidLoad</div><div class="line">&#123;</div><div class="line">    UIImageView *imageView = (UIImageView *)self.view;</div><div class="line">    imageView.contentMode = _resizeMode;</div><div class="line">    imageView.userInteractionEnabled = YES;</div><div class="line">    imageView.clipsToBounds = YES;</div><div class="line">    imageView.exclusiveTouch = YES;</div><div class="line"></div><div class="line">    // Do your image fetching and updating logic</div><div class="line">&#125;</div></pre></td></tr></table></figure>
+<p>\u5982\u679c\u53ef\u4ee5\u6539\u53d8 image \u7684 src\uff0c\u4e5f\u53ef\u4ee5 hook <code>updateAttributes:</code>  \u65b9\u6cd5\u6765\u505a\u5c5e\u6027\u66f4\u65b0\u64cd\u4f5c\uff0c\u5f53 <code>updateAttributes:</code> \u6216\u8005  <code>updateStyles:</code> \u88ab\u8c03\u7528\u7684\u65f6\u5019\uff0c component \u7684 view \u5df2\u7ecf\u52a0\u8f7d\u5b8c\u6210</p>
+<figure class="highlight plain"><table><tr><td class="code"><pre><div class="line">- (void)updateAttributes:(NSDictionary *)attributes</div><div class="line">&#123;</div><div class="line">    if (attributes[@&quot;src&quot;]) &#123;</div><div class="line">        _imageSrc = [WXConvert NSString:attributes[@&quot;src&quot;]];</div><div class="line">        // Do your image updating logic</div><div class="line">    &#125;</div><div class="line"></div><div class="line">    if (attributes[@&quot;resize&quot;]) &#123;</div><div class="line">        _resizeMode = [WXConvert UIViewContentMode:attributes[@&quot;resize&quot;]];</div><div class="line">        self.view.contentMode = _resizeMode;</div><div class="line">    &#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure>
+<p>\u6216\u8bb8\u4f60\u9700\u8981\u8003\u8651\u66f4\u591a\u7684\u751f\u547d\u5468\u671f\u65b9\u6cd5\u53bb Hook\uff0c\u5f53\u5e03\u5c40\u5b8c\u6210\u65f6\u5019\uff0c\u50cf <code>layoutDidFinish</code>\uff0c\u5982\u679c\u4f60\u60f3\u4e86\u89e3\u66f4\u591a\uff0c\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b<code>WXComponent.h</code> \u58f0\u660e\u7684\u65b9\u6cd5\u3002</p>
+<p>\u73b0\u5728\u4f60\u53ef\u4ee5\u7528\u5728\u4efb\u4f55 <code>.we</code> \u6587\u4ef6\u91cc\u9762\u4f7f\u7528 <code>&lt;image&gt;</code>\uff0c\u800c\u4e14\u53ef\u4ee5\u52a0\u4e0a image \u7684\u5c5e\u6027\u3002</p>
+<figure class="highlight html"><table><tr><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">image</span> <span class="attr">style</span>=<span class="string">"your-custom-style"</span> <span class="attr">src</span>=<span class="string">"image-remote-source"</span> <span class="attr">resize</span>=<span class="string">"contain/cover/stretch"</span>&gt;</span><span class="tag">&lt;/<span class="name">image</span>&gt;</span></div></pre></td></tr></table></figure>
+
+  </div>
+  
+</article>
+</div>
+  
+  <footer id="footer">
+  <div class="row clearfix">
+    <div class="ali-logo">
+      <img src="//gw.alicdn.com/tps/TB1Ef93PXXXXXaXXpXXXXXXXXXX-252-126.png" alt="Alibaba">
+    </div>
+    <div class="dropdown select-lang">
+      <a href="javascript:;" class="dropdown-toggle">
+        Language
+        <span class="caret"></span>
+      </a>
+      <ul class="dropdown-menu">
+        <li>
+          <a href="/v-0.10/advanced/customize-a-native-component.html">English</a>
+        </li>
+        <li>
+          <a href="/cn/v-0.10/advanced/customize-a-native-component.html">\u4e2d\u6587</a>
+        </li>
+      </ul>
+    </div>
+  </div>
+  <div class="row">
+    <p><span>Released under </span><a href="">Apache License 2.0</a></p>
+  </div>
+  <div class="row clearfix">
+    <div class="cell"><span>Copyright(c) 2016 </span><a href="https://www.alibaba.com">Alibaba</a></div>
+    <div class="cell"><span>GroupMade by </span><a href="">\u963f\u91cc\u4e91UED AX</a></div>
+  </div>
+</footer>
+  <div style="display: none;">
+  <script src="//s95.cnzz.com/z_stat.php?id=1261102667&amp;web_id=1261102667" language="JavaScript"></script>
+</div>
+
+  <script src="/js/reqwest.js"></script>
+  <script src="/js/common.js"></script>
+</body>
+</html>