http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/d332a30e/cn/references/ios-apis.html
----------------------------------------------------------------------
diff --git a/cn/references/ios-apis.html b/cn/references/ios-apis.html
deleted file mode 100644
index 3994bd4..0000000
--- a/cn/references/ios-apis.html
+++ /dev/null
@@ -1,1428 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  
-  <title>iOS APIs | Weex</title>
-  <meta name="viewport" content="width=device-width, initial-scale=1, 
maximum-scale=1">
-  <meta name="description" content="iOS APIsNative 对外接口 注册 SDK 
默认的 Module、Handler 和 Component 注册自定义 module、Handler 和 
Component 重置 JSFramework  Handler (对应于 Android 的 Adapter) 介绍 
WXImgLoaderDefaultImpl 图片下载 handler。Weex 会把需要设置图片的 
View 和">
-<meta property="og:type" content="website">
-<meta property="og:title" content="iOS APIs">
-<meta property="og:url" 
content="https://weex-project.io/cn/references/ios-apis.html";>
-<meta property="og:site_name" content="Weex">
-<meta property="og:description" content="iOS APIsNative 对外接口 注册 
SDK 默认的 Module、Handler 和 Component 注册自定义 module、Handler 
和 Component 重置 JSFramework  Handler (对应于 Android 的 Adapter) 
介绍 WXImgLoaderDefaultImpl 图片下载 handler。Weex 
会把需要设置图片的 View 和">
-<meta property="og:updated_time" content="2017-04-28T02:36:21.000Z">
-<meta name="twitter:card" content="summary">
-<meta name="twitter:title" content="iOS APIs">
-<meta name="twitter:description" content="iOS APIsNative 对外接口 注册 
SDK 默认的 Module、Handler 和 Component 注册自定义 module、Handler 
和 Component 重置 JSFramework  Handler (对应于 Android 的 Adapter) 
介绍 WXImgLoaderDefaultImpl 图片下载 handler。Weex 
会把需要设置图片的 View 和">
-  
-    <link rel="alternate" href="/atom.xml" title="Weex" 
type="application/atom+xml">
-  
-  
-    <link rel="icon" 
href="//gw.alicdn.com/tps/TB1XNqxPXXXXXcSXVXXXXXXXXXX-64-63.png">
-  
-  
-    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" 
rel="stylesheet" type="text/css">
-  
-  <link rel="stylesheet" href="/css/style.css">
-  <link rel="stylesheet" href="/css/swiper.min.css">
-</head>
-
-<body id="references" class="lang-cn">
-  
-  <script>
-    window.PAGE_TYPE = "references";
-    window.ROOT = "/"
-  </script>
-  <header id="header">
-  <div class="navbar">
-    <a id="logo" href="/cn/">
-      <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" />
-    </a>
-    <div class="main-nav">
-      <ul class="links">
-        <li><a href="/cn/guide">教程</a></li>
-        <li><a href="/cn/references">手册</a></li>
-        <li class="dropdown">
-          <a href="javascript:;">参考</a>
-          <ul class="dropdown-menu subnav">
-            <li>
-              <a href="/cn/faq.html">FAQ</a>
-            </li>
-            <li>
-              <a href="/cn/releasenote.html">版本说明</a>
-            </li>
-          </ul>
-        </li>
-        <li class="dropdown">
-            <a href="javascript:;">工具和服务</a>
-            <ul class="dropdown-menu subnav">
-              <li>
-                <a href="/cn/playground.html">Playground</a>
-              </li>
-              <li>
-                <a href="/cn/guide/tools/toolkit.html">Weex-toolkit</a>
-              </li>
-              <li>
-                <a href="http://dotwe.org"; target="_blank">Code Snippets</a>
-              </li>
-              <li>
-                <a href="https://market.dotwe.org"; target="_blank">Market</a>
-              </li>
-            </ul>
-        </li>
-      </ul>
-      <ul class="info">
-        <li><a href="https://github.com/apache/incubator-weex/"; 
target="_blank"><span class="btn-github iconfont icon-github"></span></a></li>
-      </ul>
-      <ul class="tools">
-        <li>
-          <div class="search">
-  <form id="search-form" class="search-form"> <!-- 搜索框相关 -->
-    <input type="text" id="search-input-header" name="q" results="0" 
class="form-control search-input" autocomplete="off" autocorrect="off"/>
-    <span class="iconfont icon-search"></span>
-  </form>
-  <div class="results-panel">
-  </div>
-</div>
-        </li>
-        <li>
-          <div class="dropdown select-lang">
-            <a href="javascript:;" class="dropdown-toggle">
-              Language
-              <span class="caret"></span>
-            </a>
-            <ul class="dropdown-menu pick-lang">
-              <li>
-                <a href="/references/ios-apis.html" data-lang="en">English</a>
-              </li>
-              <li>
-                <a href="/cn/references/ios-apis.html" 
data-lang="zh-cn">中文</a>
-              </li>
-            </ul>
-          </div>
-        </li>
-        <!--<li></li>-->
-      </ul>
-    </div>
-  </div>
-  <div id="mobile-nav">
-    <a id="logo" href="/cn/">
-      <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" />
-    </a>
-    <a class="btn-menu"><span class="iconfont icon-nav"></span></a>
-  </div>
-</header>
-
-  <div id="sidebar" class="">
-  <div class="sidebar-menu">
-    
-      <div class="search">
-  <form id="search-form" class="search-form"> <!-- 搜索框相关 -->
-    <input type="text" id="search-input-sidebar" name="q" results="0" 
class="form-control search-input" autocomplete="off" autocorrect="off"/>
-    <span class="iconfont icon-search"></span>
-  </form>
-  <div class="results-panel">
-  </div>
-</div>
-      
-
-<div class="doc-nav-version">
-  <select class="versionBtn" stype="/cn/references">
-  
-    <option value="2v" selected>v2.x</option>
-    <option value="1v">v1.x</option>
-  
- </select>
-</div>
-<div class="summary">
-  <h2 class="part-title">
-    
-      手册
-    
-  </h2>
-  <ul class="doc-summary">
-    
-    
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-   
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/index.html" 
class="sidebar-link  ">通用特性</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/ios-apis.html" class="sidebar-link 
current ">iOS APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/android-apis.html" class="sidebar-link 
 ">Android APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/html5-apis.html" class="sidebar-link  
">HTML5 APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/jsfm-apis.html" class="sidebar-link  
">JS Framework APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/common-style.html" class="sidebar-link 
 ">通用样式</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/text-style.html" class="sidebar-link  
">文本样式</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/color-names.html" class="sidebar-link  
">颜色名称列表</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/gesture.html" class="sidebar-link  
">手势</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/path.html" class="sidebar-link  ">Path 
(英)</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/components/index.html" class="sidebar-link  ">内
建组件</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/components/a.html" class="sidebar-link 
 ">&lt;a&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/slider.html" 
class="sidebar-link  ">&lt;slider&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/waterfall.html" 
class="sidebar-link  ">&lt;waterfall&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  ">内建模块</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/modules/animation.html" 
class="sidebar-link  ">animation</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/websocket.html" 
class="sidebar-link  ">WebSocket</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/picker.html" 
class="sidebar-link  ">picker</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/clipboard.html" 
class="sidebar-link  ">clipboard</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/dom.html" class="sidebar-link  
">dom</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/modal.html" 
class="sidebar-link  ">modal</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/navigator.html" 
class="sidebar-link  ">navigator</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/storage.html" 
class="sidebar-link  ">storage</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/stream.html" 
class="sidebar-link  ">stream</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/webview.html" 
class="sidebar-link  ">webview</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/globalevent.html" 
class="sidebar-link  ">globalEvent</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/unit.html" 
class="sidebar-link  ">CSS 单位</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/common-event.html" 
class="sidebar-link  ">通用事件</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/native-dom-api.html" 
class="sidebar-link  ">Native DOM APIs</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/weex-variable.html" 
class="sidebar-link  ">Weex 实例变量</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/web-standards.html" 
class="sidebar-link  ">Web 标准</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/js-service/index.html" class="sidebar-link  ">JS 
Service</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/vue/index.html" 
class="sidebar-link  ">Vue</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/vue/difference-with-web.html" 
class="sidebar-link  ">Vue 2.x 在 Weex 和 Web 中的差异</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/vue/difference-of-vuex.html" 
class="sidebar-link  ">使用 Vuex 和 vue-router</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/advanced/index.html" 
class="sidebar-link  ">高阶知识</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-ios.html" 
class="sidebar-link  ">iOS 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-android.html" 
class="sidebar-link  ">Android 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-html5.html" 
class="sidebar-link  ">HTML5 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-jsfm.html" 
class="sidebar-link  ">拓展 JS framework</a>
-              </li>
-            
-              <li>
-                <a 
href="/cn/references/advanced/integrate-devtool-to-android.html" 
class="sidebar-link  ">集成 Devtools 到 Android</a>
-              </li>
-            
-              <li>
-                <a 
href="/cn/references/advanced/integrate-devtool-to-ios.html" 
class="sidebar-link  ">集成 Devtools 到 iOS</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/platform-difference.html" class="sidebar-link  ">Weex 和 
Web 平台的差异</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/migration/index.html" 
class="sidebar-link  ">迁移</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/migration/migration-from-weex.html" 
class="sidebar-link  ">如何将原有 Weex 项目改造成 Vue 版本</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/migration/difference.html" 
class="sidebar-link  ">Weex 和 Vue 2.x 的语法差异</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-    
-  </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="doc-nav-version">
-  <select class="versionBtn" stype="/cn/references">
-  
-    <option value="2v" selected>v2.x</option>
-    <option value="1v">v1.x</option>
-  
- </select>
-</div>
-<div class="summary">
-  <h2 class="part-title">
-    
-      手册
-    
-  </h2>
-  <ul class="doc-summary">
-    
-    
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-   
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/index.html" 
class="sidebar-link  ">通用特性</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/ios-apis.html" class="sidebar-link 
current ">iOS APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/android-apis.html" class="sidebar-link 
 ">Android APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/html5-apis.html" class="sidebar-link  
">HTML5 APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/jsfm-apis.html" class="sidebar-link  
">JS Framework APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/common-style.html" class="sidebar-link 
 ">通用样式</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/text-style.html" class="sidebar-link  
">文本样式</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/color-names.html" class="sidebar-link  
">颜色名称列表</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/gesture.html" class="sidebar-link  
">手势</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/path.html" class="sidebar-link  ">Path 
(英)</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/components/index.html" class="sidebar-link  ">内
建组件</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/components/a.html" class="sidebar-link 
 ">&lt;a&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/slider.html" 
class="sidebar-link  ">&lt;slider&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/waterfall.html" 
class="sidebar-link  ">&lt;waterfall&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  ">内建模块</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/modules/animation.html" 
class="sidebar-link  ">animation</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/websocket.html" 
class="sidebar-link  ">WebSocket</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/picker.html" 
class="sidebar-link  ">picker</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/clipboard.html" 
class="sidebar-link  ">clipboard</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/dom.html" class="sidebar-link  
">dom</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/modal.html" 
class="sidebar-link  ">modal</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/navigator.html" 
class="sidebar-link  ">navigator</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/storage.html" 
class="sidebar-link  ">storage</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/stream.html" 
class="sidebar-link  ">stream</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/webview.html" 
class="sidebar-link  ">webview</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/globalevent.html" 
class="sidebar-link  ">globalEvent</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/unit.html" 
class="sidebar-link  ">CSS 单位</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/common-event.html" 
class="sidebar-link  ">通用事件</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/native-dom-api.html" 
class="sidebar-link  ">Native DOM APIs</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/weex-variable.html" 
class="sidebar-link  ">Weex 实例变量</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/web-standards.html" 
class="sidebar-link  ">Web 标准</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/js-service/index.html" class="sidebar-link  ">JS 
Service</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/vue/index.html" 
class="sidebar-link  ">Vue</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/vue/difference-with-web.html" 
class="sidebar-link  ">Vue 2.x 在 Weex 和 Web 中的差异</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/vue/difference-of-vuex.html" 
class="sidebar-link  ">使用 Vuex 和 vue-router</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/advanced/index.html" 
class="sidebar-link  ">高阶知识</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-ios.html" 
class="sidebar-link  ">iOS 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-android.html" 
class="sidebar-link  ">Android 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-html5.html" 
class="sidebar-link  ">HTML5 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-jsfm.html" 
class="sidebar-link  ">拓展 JS framework</a>
-              </li>
-            
-              <li>
-                <a 
href="/cn/references/advanced/integrate-devtool-to-android.html" 
class="sidebar-link  ">集成 Devtools 到 Android</a>
-              </li>
-            
-              <li>
-                <a 
href="/cn/references/advanced/integrate-devtool-to-ios.html" 
class="sidebar-link  ">集成 Devtools 到 iOS</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/platform-difference.html" class="sidebar-link  ">Weex 和 
Web 平台的差异</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/migration/index.html" 
class="sidebar-link  ">迁移</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/migration/migration-from-weex.html" 
class="sidebar-link  ">如何将原有 Weex 项目改造成 Vue 版本</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/migration/difference.html" 
class="sidebar-link  ">Weex 和 Vue 2.x 的语法差异</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-    
-  </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">
-        iOS APIs
-      </h1>
-    
-  
-  <time class="article-date" datetime="2017-04-28T02:36:21.000Z">Updated time: 
28/04/2017</time>
-</header>
-    <h1 id="iOS-APIs"><a href="#iOS-APIs" class="headerlink" title="iOS 
APIs"></a>iOS APIs</h1><h2 id="Native-对外接口"><a 
href="#Native-对外接口" class="headerlink" title="Native 
对外接口"></a>Native 对外接口</h2><ul>
-<li>注册 SDK 默认的 Module、Handler 和 Component</li>
-<li>注册自定义 module、Handler 和 Component</li>
-<li>重置 JSFramework</li>
-</ul>
-<h2 id="Handler-对应于-Android-的-Adapter-介绍"><a 
href="#Handler-对应于-Android-的-Adapter-介绍" class="headerlink" 
title="Handler (对应于 Android 的 Adapter) 介绍"></a>Handler (对应于 
Android 的 Adapter) 介绍</h2><ul>
-<li><p><code>WXImgLoaderDefaultImpl</code> 图片下载 handler。Weex 
会把需要设置图片的 View 和 URL 透露出来,Native 
端需要实现这个接口进行图片下载。WeexSDK kernel 
本身没有提供图片下载的默认实现。</p>
-<p>接口定义如下:</p>
-<figure class="highlight plain"><table><tr><td class="code"><pre><div 
class="line">  @protocol WXImgLoaderProtocol &lt;WXModuleProtocol&gt;</div><div 
class="line">/**</div><div class="line">  * @abstract Creates a image download 
handler with a given URL</div><div class="line">  *</div><div class="line">  * 
@param imageUrl The URL of the image to download</div><div class="line">  
*</div><div class="line">  * @param imageFrame  The frame of the image you want 
to set</div><div class="line">  *</div><div class="line">  * @param options : 
The options to be used for this download</div><div class="line">  *</div><div 
class="line">  * @param completedBlock : A block called once the download is 
completed.</div><div class="line">  *                 image : the image which 
has been download to local.</div><div class="line">  *                 error : 
the error which has happened in download.</div><div class="line">  *            
  finished : a Boolean value indicating whether download action h
 as finished.</div><div class="line">  */</div><div class="line">- 
(id&lt;WXImageOperationProtocol&gt;)downloadImageWithURL:(NSString *)url 
imageFrame:(CGRect)imageFrame userInfo:(NSDictionary *)options 
completed:(void(^)(UIImage *image,  NSError *error, BOOL 
finished))completedBlock;</div><div 
class="line">@end</div></pre></td></tr></table></figure>
-</li>
-</ul>
-<h2 id="Native-和-JS-通信"><a href="#Native-和-JS-通信" 
class="headerlink" title="Native 和 JS 通信"></a>Native 和 JS 
通信</h2><ul>
-<li><p>自定义通知事件</p>
-<p>用于 native 自定义部分和 js 进行实践通知,比如传
递下拉事件到 js,这个是在 component 
基类的方法,可以直接使用</p>
-<figure class="highlight plain"><table><tr><td class="code"><pre><div 
class="line">/**</div><div class="line">  * @abstract Fire an event to the 
component and tell Javascript which value has been changed. </div><div 
class="line">  * @param eventName 事件名称,可以在weex文件某个æ 
‡ç­¾ç»„件监听,命名规范为 onXXX</div><div class="line">  * @param 
params 数据</div><div class="line">  * @param domChanges 
发生改变的数据</div><div class="line">  **/</div><div class="line">- 
(void)fireEvent:(NSString *)eventName params:(NSDictionary *)params 
domChanges:(NSDictionary *)domChanges</div></pre></td></tr></table></figure>
-</li>
-<li><p>事件回调</p>
-<p>多用于 Module 回调结果给 js,回调类型分为下面两种:</p>
-<ol>
-<li><p><code>WXModuleCallback</code> 
为了性能考虑,该回调只能回调通知js一次,之后会被释放,多用于一次结果</p>
-</li>
-<li><p><code>WXModuleKeepAliveCallback</code> 
该回调可以设置是否为多次回调类型,多次回调的场景如持续监听位置的变化,并返回给
 js。</p>
-</li>
-</ol>
-<figure class="highlight plain"><table><tr><td class="code"><pre><div 
class="line">@implementation WXEchoModule</div><div class="line">@synthesize 
weexInstance; // 让该module 获得当前instance</div><div 
class="line">WX_EXPORT_METHOD(@selector(echo:))</div><div class="line">- 
(void)echo:(NSString *)param 
callback:(WXModuleKeepAliveCallback)callback</div><div 
class="line">&#123;</div><div class="line">  callback(param,ture);// 
此处设置true,该回调function 
可以多次回调执行,可以写循环测试.</div><div 
class="line">&#125;</div></pre></td></tr></table></figure>
-</li>
-</ul>
-<h2 id="动态适配容器"><a href="#动态适配容器" class="headerlink" 
title="动态适配容器"></a>动态适配容器</h2><p>WeexSDK 在 
<code>WXSDKInstance</code> 类中提供了方法 <code>setFrame(CGRect)</code> 
来改变容器的大小。</p>
-<p>如:在导航栏从有到无过程,需要 weexView 的变化, 
可以在此时 native 调用该方法设置</p>
-<h2 id="降级使用"><a href="#降级使用" class="headerlink" 
title="降级使用"></a>降级使用</h2><p>Weex 处于发展阶段会增加
一些新的特性和功能,但是这些新的特性和功能都必须升级 
SDK 
才能实现,对于没有升级的应用应该怎么处理呢?可以使用降级功能。</p>
-<p>所谓降级功能就是 Weex 无法运行的版本或者手机,可以用 
Weex h5 来代替。</p>
-<p>Native 端可以通过接口 WXSDKInstance 中的 onFailed 
回调进行处理,如果是主动降级则返回的错误 domain 为 
<code>TemplateErrorType</code>,Native 端可以跳转到对应的 H5 
页面,或者用其他的方式提示用户当前环境不支持 Weex。</p>
-
-  </div>
-  
-</article>
-</div>
-  
-  <footer id="footer">
-  <div class="row clearfix">
-    <div class="dropdown select-lang">
-      <a href="javascript:;" class="dropdown-toggle">
-        Language
-        <span class="caret"></span>
-      </a>
-      <ul class="dropdown-menu pick-lang">
-        <li>
-          <a href="/references/ios-apis.html" data-lang="en">English</a>
-        </li>
-        <li>
-          <a href="/cn/references/ios-apis.html" data-lang="zh-cn">中文</a>
-        </li>
-      </ul>
-    </div>
-  </div>
-  <div class="disclaimer">
-    <div><img 
src="//gw.alicdn.com/tfs/TB1pTBZQFXXXXX9XXXXXXXXXXXX-794-280.png" width="200px" 
alt="Apache Incubator"></div>
-    <div><span class="title">Disclaimer:</span> Apache Weex is an effort 
undergoing incubation at The Apache Software Foundation (ASF), sponsored by the 
Apache Incubator. Incubation is required of all newly accepted projects until a 
further review indicates that the infrastructure, communications, and decision 
making process have stabilized in a manner consistent with other successful ASF 
projects. While incubation status is not necessarily a reflection of the 
completeness or stability of the code, it does indicate that the project has 
yet to be fully endorsed by the ASF.</div>
-    <br/>
-  </div>
-  <hr>
-  <div class="row">
-    <p> <img src="//gw.alicdn.com/tfs/TB1bg8SQFXXXXcHXXXXXXXXXXXX-85-170.png" 
height="50px" alt="Apache"><span>Copyright(c) 2017 The Apache Software 
Foundation. Licensed under the </span> <a 
href="http://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 
2.0</a></p>
-  </div>
-  <div class="row clearfix">
-    <div></div>
-  </div>
-</footer>
-  <div style="display: none;">
-  <script src="//s95.cnzz.com/z_stat.php?id=1261496509&web_id=1261496509" 
language="JavaScript"></script>
-</div>
-
-  <script src="/js/reqwest.js"></script>
-  <script src="/js/common.js"></script>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/d332a30e/cn/references/js-service/index.html
----------------------------------------------------------------------
diff --git a/cn/references/js-service/index.html 
b/cn/references/js-service/index.html
deleted file mode 100644
index f053cbc..0000000
--- a/cn/references/js-service/index.html
+++ /dev/null
@@ -1,1404 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <meta charset="utf-8">
-  
-  <title>JS Service | Weex</title>
-  <meta name="viewport" content="width=device-width, initial-scale=1, 
maximum-scale=1">
-  <meta name="description" content="JS Servicev0.9.5+ JS service 和 Weex 
实例在 JS runtime 中并行运行。Weex 实例的生命周期可调用 JS 
service 生命周期。目前提供创建、刷新、销毁生命周期。 
重要提醒: JS Service 非常强大但也很危险,请小心使用! 
注册 JS ServiceiOS[WeexSDKEngine registerService:@&amp;quot;SERVI">
-<meta property="og:type" content="website">
-<meta property="og:title" content="JS Service">
-<meta property="og:url" 
content="https://weex-project.io/cn/references/js-service/index.html";>
-<meta property="og:site_name" content="Weex">
-<meta property="og:description" content="JS Servicev0.9.5+ JS service 和 Weex 
实例在 JS runtime 中并行运行。Weex 实例的生命周期可调用 JS 
service 生命周期。目前提供创建、刷新、销毁生命周期。 
重要提醒: JS Service 非常强大但也很危险,请小心使用! 
注册 JS ServiceiOS[WeexSDKEngine registerService:@&amp;quot;SERVI">
-<meta property="og:updated_time" content="2017-04-28T02:36:21.000Z">
-<meta name="twitter:card" content="summary">
-<meta name="twitter:title" content="JS Service">
-<meta name="twitter:description" content="JS Servicev0.9.5+ JS service 和 
Weex 实例在 JS runtime 中并行运行。Weex 实例的生命周期可调用 
JS service 生命周期。目前提供创建、刷新、销毁生命周期。 
重要提醒: JS Service 非常强大但也很危险,请小心使用! 
注册 JS ServiceiOS[WeexSDKEngine registerService:@&amp;quot;SERVI">
-  
-    <link rel="alternate" href="/atom.xml" title="Weex" 
type="application/atom+xml">
-  
-  
-    <link rel="icon" 
href="//gw.alicdn.com/tps/TB1XNqxPXXXXXcSXVXXXXXXXXXX-64-63.png">
-  
-  
-    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" 
rel="stylesheet" type="text/css">
-  
-  <link rel="stylesheet" href="/css/style.css">
-  <link rel="stylesheet" href="/css/swiper.min.css">
-</head>
-
-<body id="references" class="lang-cn">
-  
-  <script>
-    window.PAGE_TYPE = "references";
-    window.ROOT = "/"
-  </script>
-  <header id="header">
-  <div class="navbar">
-    <a id="logo" href="/cn/">
-      <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" />
-    </a>
-    <div class="main-nav">
-      <ul class="links">
-        <li><a href="/cn/guide">教程</a></li>
-        <li><a href="/cn/references">手册</a></li>
-        <li class="dropdown">
-          <a href="javascript:;">参考</a>
-          <ul class="dropdown-menu subnav">
-            <li>
-              <a href="/cn/faq.html">FAQ</a>
-            </li>
-            <li>
-              <a href="/cn/releasenote.html">版本说明</a>
-            </li>
-          </ul>
-        </li>
-        <li class="dropdown">
-            <a href="javascript:;">工具和服务</a>
-            <ul class="dropdown-menu subnav">
-              <li>
-                <a href="/cn/playground.html">Playground</a>
-              </li>
-              <li>
-                <a href="/cn/guide/tools/toolkit.html">Weex-toolkit</a>
-              </li>
-              <li>
-                <a href="http://dotwe.org"; target="_blank">Code Snippets</a>
-              </li>
-              <li>
-                <a href="https://market.dotwe.org"; target="_blank">Market</a>
-              </li>
-            </ul>
-        </li>
-      </ul>
-      <ul class="info">
-        <li><a href="https://github.com/apache/incubator-weex/"; 
target="_blank"><span class="btn-github iconfont icon-github"></span></a></li>
-      </ul>
-      <ul class="tools">
-        <li>
-          <div class="search">
-  <form id="search-form" class="search-form"> <!-- 搜索框相关 -->
-    <input type="text" id="search-input-header" name="q" results="0" 
class="form-control search-input" autocomplete="off" autocorrect="off"/>
-    <span class="iconfont icon-search"></span>
-  </form>
-  <div class="results-panel">
-  </div>
-</div>
-        </li>
-        <li>
-          <div class="dropdown select-lang">
-            <a href="javascript:;" class="dropdown-toggle">
-              Language
-              <span class="caret"></span>
-            </a>
-            <ul class="dropdown-menu pick-lang">
-              <li>
-                <a href="/references/js-service/index.html" 
data-lang="en">English</a>
-              </li>
-              <li>
-                <a href="/cn/references/js-service/index.html" 
data-lang="zh-cn">中文</a>
-              </li>
-            </ul>
-          </div>
-        </li>
-        <!--<li></li>-->
-      </ul>
-    </div>
-  </div>
-  <div id="mobile-nav">
-    <a id="logo" href="/cn/">
-      <img src="//img.alicdn.com/tps/TB1zBLaPXXXXXXeXXXXXXXXXXXX-121-59.svg" />
-    </a>
-    <a class="btn-menu"><span class="iconfont icon-nav"></span></a>
-  </div>
-</header>
-
-  <div id="sidebar" class="">
-  <div class="sidebar-menu">
-    
-      <div class="search">
-  <form id="search-form" class="search-form"> <!-- 搜索框相关 -->
-    <input type="text" id="search-input-sidebar" name="q" results="0" 
class="form-control search-input" autocomplete="off" autocorrect="off"/>
-    <span class="iconfont icon-search"></span>
-  </form>
-  <div class="results-panel">
-  </div>
-</div>
-      
-
-<div class="doc-nav-version">
-  <select class="versionBtn" stype="/cn/references">
-  
-    <option value="2v" selected>v2.x</option>
-    <option value="1v">v1.x</option>
-  
- </select>
-</div>
-<div class="summary">
-  <h2 class="part-title">
-    
-      手册
-    
-  </h2>
-  <ul class="doc-summary">
-    
-    
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-   
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/index.html" 
class="sidebar-link  ">通用特性</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/ios-apis.html" class="sidebar-link  
">iOS APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/android-apis.html" class="sidebar-link 
 ">Android APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/html5-apis.html" class="sidebar-link  
">HTML5 APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/jsfm-apis.html" class="sidebar-link  
">JS Framework APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/common-style.html" class="sidebar-link 
 ">通用样式</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/text-style.html" class="sidebar-link  
">文本样式</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/color-names.html" class="sidebar-link  
">颜色名称列表</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/gesture.html" class="sidebar-link  
">手势</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/path.html" class="sidebar-link  ">Path 
(英)</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/components/index.html" class="sidebar-link  ">内
建组件</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/components/a.html" class="sidebar-link 
 ">&lt;a&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/slider.html" 
class="sidebar-link  ">&lt;slider&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/waterfall.html" 
class="sidebar-link  ">&lt;waterfall&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  ">内建模块</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/modules/animation.html" 
class="sidebar-link  ">animation</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/websocket.html" 
class="sidebar-link  ">WebSocket</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/picker.html" 
class="sidebar-link  ">picker</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/clipboard.html" 
class="sidebar-link  ">clipboard</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/dom.html" class="sidebar-link  
">dom</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/modal.html" 
class="sidebar-link  ">modal</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/navigator.html" 
class="sidebar-link  ">navigator</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/storage.html" 
class="sidebar-link  ">storage</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/stream.html" 
class="sidebar-link  ">stream</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/webview.html" 
class="sidebar-link  ">webview</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/globalevent.html" 
class="sidebar-link  ">globalEvent</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/unit.html" 
class="sidebar-link  ">CSS 单位</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/common-event.html" 
class="sidebar-link  ">通用事件</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/native-dom-api.html" 
class="sidebar-link  ">Native DOM APIs</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/weex-variable.html" 
class="sidebar-link  ">Weex 实例变量</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/web-standards.html" 
class="sidebar-link  ">Web 标准</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/js-service/index.html" class="sidebar-link current ">JS 
Service</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/vue/index.html" 
class="sidebar-link  ">Vue</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/vue/difference-with-web.html" 
class="sidebar-link  ">Vue 2.x 在 Weex 和 Web 中的差异</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/vue/difference-of-vuex.html" 
class="sidebar-link  ">使用 Vuex 和 vue-router</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/advanced/index.html" 
class="sidebar-link  ">高阶知识</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-ios.html" 
class="sidebar-link  ">iOS 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-android.html" 
class="sidebar-link  ">Android 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-html5.html" 
class="sidebar-link  ">HTML5 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-jsfm.html" 
class="sidebar-link  ">拓展 JS framework</a>
-              </li>
-            
-              <li>
-                <a 
href="/cn/references/advanced/integrate-devtool-to-android.html" 
class="sidebar-link  ">集成 Devtools 到 Android</a>
-              </li>
-            
-              <li>
-                <a 
href="/cn/references/advanced/integrate-devtool-to-ios.html" 
class="sidebar-link  ">集成 Devtools 到 iOS</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/platform-difference.html" class="sidebar-link  ">Weex 和 
Web 平台的差异</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/migration/index.html" 
class="sidebar-link  ">迁移</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/migration/migration-from-weex.html" 
class="sidebar-link  ">如何将原有 Weex 项目改造成 Vue 版本</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/migration/difference.html" 
class="sidebar-link  ">Weex 和 Vue 2.x 的语法差异</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-    
-  </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="doc-nav-version">
-  <select class="versionBtn" stype="/cn/references">
-  
-    <option value="2v" selected>v2.x</option>
-    <option value="1v">v1.x</option>
-  
- </select>
-</div>
-<div class="summary">
-  <h2 class="part-title">
-    
-      手册
-    
-  </h2>
-  <ul class="doc-summary">
-    
-    
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-      
-      
-        
-      
-    
-   
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/index.html" 
class="sidebar-link  ">通用特性</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/ios-apis.html" class="sidebar-link  
">iOS APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/android-apis.html" class="sidebar-link 
 ">Android APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/html5-apis.html" class="sidebar-link  
">HTML5 APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/jsfm-apis.html" class="sidebar-link  
">JS Framework APIs</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/common-style.html" class="sidebar-link 
 ">通用样式</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/text-style.html" class="sidebar-link  
">文本样式</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/color-names.html" class="sidebar-link  
">颜色名称列表</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/gesture.html" class="sidebar-link  
">手势</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/path.html" class="sidebar-link  ">Path 
(英)</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/components/index.html" class="sidebar-link  ">内
建组件</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/components/a.html" class="sidebar-link 
 ">&lt;a&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/slider.html" 
class="sidebar-link  ">&lt;slider&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/waterfall.html" 
class="sidebar-link  ">&lt;waterfall&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  ">内建模块</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/modules/animation.html" 
class="sidebar-link  ">animation</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/websocket.html" 
class="sidebar-link  ">WebSocket</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/picker.html" 
class="sidebar-link  ">picker</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/clipboard.html" 
class="sidebar-link  ">clipboard</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/dom.html" class="sidebar-link  
">dom</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/modal.html" 
class="sidebar-link  ">modal</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/navigator.html" 
class="sidebar-link  ">navigator</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/storage.html" 
class="sidebar-link  ">storage</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/stream.html" 
class="sidebar-link  ">stream</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/webview.html" 
class="sidebar-link  ">webview</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/modules/globalevent.html" 
class="sidebar-link  ">globalEvent</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/unit.html" 
class="sidebar-link  ">CSS 单位</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/common-event.html" 
class="sidebar-link  ">通用事件</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/native-dom-api.html" 
class="sidebar-link  ">Native DOM APIs</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/weex-variable.html" 
class="sidebar-link  ">Weex 实例变量</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/web-standards.html" 
class="sidebar-link  ">Web 标准</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/js-service/index.html" class="sidebar-link current ">JS 
Service</a></h3>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/vue/index.html" 
class="sidebar-link  ">Vue</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/vue/difference-with-web.html" 
class="sidebar-link  ">Vue 2.x 在 Weex 和 Web 中的差异</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/vue/difference-of-vuex.html" 
class="sidebar-link  ">使用 Vuex 和 vue-router</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a href="/cn/references/advanced/index.html" 
class="sidebar-link  ">高阶知识</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-ios.html" 
class="sidebar-link  ">iOS 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-android.html" 
class="sidebar-link  ">Android 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-to-html5.html" 
class="sidebar-link  ">HTML5 扩展</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/advanced/extend-jsfm.html" 
class="sidebar-link  ">拓展 JS framework</a>
-              </li>
-            
-              <li>
-                <a 
href="/cn/references/advanced/integrate-devtool-to-android.html" 
class="sidebar-link  ">集成 Devtools 到 Android</a>
-              </li>
-            
-              <li>
-                <a 
href="/cn/references/advanced/integrate-devtool-to-ios.html" 
class="sidebar-link  ">集成 Devtools 到 iOS</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-      <li>
-        <h3 class="chapter-title"><a 
href="/cn/references/platform-difference.html" class="sidebar-link  ">Weex 和 
Web 平台的差异</a></h3>
-        
-          <ul class="chapter">
-            
-              <li>
-                <a href="/cn/references/migration/index.html" 
class="sidebar-link  ">迁移</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/migration/migration-from-weex.html" 
class="sidebar-link  ">如何将原有 Weex 项目改造成 Vue 版本</a>
-              </li>
-            
-              <li>
-                <a href="/cn/references/migration/difference.html" 
class="sidebar-link  ">Weex 和 Vue 2.x 的语法差异</a>
-              </li>
-            
-          </ul>
-        
-      </li>
-    
-    
-  </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">
-        JS Service
-      </h1>
-    
-  
-  <time class="article-date" datetime="2017-04-28T02:36:21.000Z">Updated time: 
28/04/2017</time>
-</header>
-    <h1 id="JS-Service"><a href="#JS-Service" class="headerlink" title="JS 
Service"></a>JS Service</h1><p><span class="weex-version">v0.9.5+</span></p>
-<p>JS service 和 Weex 实例在 JS runtime 中并行运行。Weex 
实例的生命周期可调用 JS service 
生命周期。目前提供创建、刷新、销毁生命周期。</p>
-<p><strong>重要提醒: JS Service 
非常强大但也很危险,请小心使用!</strong></p>
-<h2 id="注册-JS-Service"><a href="#注册-JS-Service" class="headerlink" 
title="注册 JS Service"></a>注册 JS Service</h2><h3 id="iOS"><a href="#iOS" 
class="headerlink" title="iOS"></a>iOS</h3><figure class="highlight 
plain"><table><tr><td class="code"><pre><div class="line">[WeexSDKEngine 
registerService:@&quot;SERVICE_NAME&quot; withScript: 
@&quot;SERVICE_JS_CODE&quot; withOptions: 
@&#123;&#125;];</div></pre></td></tr></table></figure>
-<h3 id="Android"><a href="#Android" class="headerlink" 
title="Android"></a>Android</h3><figure class="highlight java"><table><tr><td 
class="code"><pre><div class="line">HashMap&lt;String, String&gt; options = 
<span class="keyword">new</span> HashMap&lt;&gt;()</div><div 
class="line">options.put(<span class="string">"k1"</span>, <span 
class="string">"v1"</span>)</div><div class="line">String SERVICE_NAME = <span 
class="string">"SERVICE_NAME"</span></div><div class="line">String 
SERVICE_JS_CODE = <span class="string">"SERVICE_JS_CODE"</span></div><div 
class="line"><span class="keyword">boolean</span> result = 
WXSDKEngine.registerService(SERVICE_NAME, SERVICE_JS_CODE, 
options)</div></pre></td></tr></table></figure>
-<h3 id="Web"><a href="#Web" class="headerlink" title="Web"></a>Web</h3><figure 
class="highlight html"><table><tr><td class="code"><pre><div class="line"><span 
class="comment">&lt;!-- 必须在 JSFM 之后加载 --&gt;</span></div><div 
class="line"><span class="tag">&lt;<span class="name">script</span> <span 
class="attr">src</span>=<span 
class="string">"SERVICE_JS_CODE_URL"</span>&gt;</span><span 
class="undefined"></span><span class="tag">&lt;/<span 
class="name">script</span>&gt;</span></div></pre></td></tr></table></figure>
-<h2 id="编写一个-JS-service"><a href="#编写一个-JS-service" 
class="headerlink" title="编写一个 JS service"></a>编写一个 JS 
service</h2><figure class="highlight javascript"><table><tr><td 
class="code"><pre><div class="line"><span class="comment">// options: native 
inject options</span></div><div class="line"><span class="comment">// 
options.serviceName is native options name</span></div><div 
class="line">service.register(options.serviceName, &#123;</div><div 
class="line">  <span class="comment">/**</span></div><div class="line">    * JS 
Service lifecycle. JS Service `create` will before then each instance lifecycle 
`create`. The return param `instance` is Weex protected param. This object will 
return to instance global. Other params will in the `services` at 
instance.</div><div class="line">    *</div><div class="line">    * @param  
&#123;String&#125; id  instance id</div><div class="line">    * @param  
&#123;Object&#125; env device environment</div><div class="line">
     * @return &#123;Object&#125;</div><div class="line">    */</div><div 
class="line">  create: <span class="function"><span 
class="keyword">function</span>(<span class="params">id, env, config</span>) 
</span>&#123;</div><div class="line">    <span class="keyword">return</span> 
&#123;</div><div class="line">      <span class="attr">instance</span>: 
&#123;</div><div class="line">        <span 
class="attr">InstanceService</span>: <span class="function"><span 
class="keyword">function</span>(<span class="params">weex</span>) 
</span>&#123;</div><div class="line">          <span class="keyword">var</span> 
modal = weex.requireModule(<span class="string">'modal'</span>)</div><div 
class="line">          <span class="keyword">return</span> &#123;</div><div 
class="line">            <span class="attr">toast</span>: <span 
class="function"><span class="keyword">function</span>(<span 
class="params">title</span>) </span>&#123;</div><div class="line">              
modal.toast(&#123; <span class="att
 r">message</span>: title &#125;)</div><div class="line">            
&#125;</div><div class="line">          &#125;</div><div class="line">        
&#125;</div><div class="line">      &#125;,</div><div class="line">      <span 
class="attr">NormalService</span>: <span class="function"><span 
class="keyword">function</span>(<span class="params">weex</span>) 
</span>&#123;</div><div class="line">        <span class="keyword">var</span> 
modal = weex.requireModule(<span class="string">'modal'</span>)</div><div 
class="line">        <span class="keyword">return</span> &#123;</div><div 
class="line">          <span class="attr">toast</span>: <span 
class="function"><span class="keyword">function</span>(<span 
class="params">title</span>) </span>&#123;</div><div class="line">            
modal.toast(&#123; <span class="attr">message</span>: title &#125;)</div><div 
class="line">          &#125;</div><div class="line">        &#125;</div><div 
class="line">      &#125;</div><div class="line">    &#125;
 </div><div class="line">  &#125;,</div><div class="line"></div><div 
class="line">  <span class="comment">/**</span></div><div class="line">    * JS 
Service lifecycle. JS Service `refresh` will before then each instance 
lifecycle `refresh`. If you want to reset variable or something on instance 
refresh.</div><div class="line">    *</div><div class="line">    * @param  
&#123;String&#125; id  instance id</div><div class="line">    * @param  
&#123;Object&#125; env device environment</div><div class="line">    
*/</div><div class="line">  refresh: <span class="function"><span 
class="keyword">function</span>(<span class="params">id, env, 
config</span>)</span>&#123;</div><div class="line"></div><div class="line">  
&#125;,</div><div class="line"></div><div class="line">  <span 
class="comment">/**</span></div><div class="line">    * JS Service lifecycle. 
JS Service `destroy` will before then each instance lifecycle `destroy`. You 
can deleted variable here. If you doesn't detete variable defin
 e in JS Service. The variable will always in the js runtime. It's would be 
memory leak risk.</div><div class="line">    *</div><div class="line">    * 
@param  &#123;String&#125; id  instance id</div><div class="line">    * @param  
&#123;Object&#125; env device environment</div><div class="line">    * @return 
&#123;Object&#125;</div><div class="line">    */</div><div class="line">  
destroy: <span class="function"><span class="keyword">function</span>(<span 
class="params">id, env</span>) </span>&#123;</div><div class="line"></div><div 
class="line">  &#125;</div><div 
class="line">&#125;)</div></pre></td></tr></table></figure>
-<h2 id="Using-JS-Service-vuejs"><a href="#Using-JS-Service-vuejs" 
class="headerlink" title="Using JS Service (vuejs)"></a>Using JS Service 
(vuejs)</h2><figure class="highlight html"><table><tr><td 
class="code"><pre><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> _InstanceService = <span 
class="keyword">new</span> InstanceService(weex)</div><div class="line"><span 
class="keyword">var</span> _NormalService = <span class="keyword">new</span> 
service.normalService(weex)</div><div class="line"></div><div 
class="line"><span class="built_in">module</span>.exports = &#123;</div><div 
class="line">  <span class="attr">created</span>: fucntion() &#123;</div><div 
class="line">    <span class="comment">// called modal module to toast 
something</span></div><div class="line">    _InstanceService.toast(<span 
class="string">'Instance JS Service'</span>)</div><div class="line"> 
    _NormalService.toast(<span class="string">'Normal JS 
Service'</span>)</div><div class="line">  &#125;</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>
-
-  </div>
-  
-</article>
-</div>
-  
-  <footer id="footer">
-  <div class="row clearfix">
-    <div class="dropdown select-lang">
-      <a href="javascript:;" class="dropdown-toggle">
-        Language
-        <span class="caret"></span>
-      </a>
-      <ul class="dropdown-menu pick-lang">
-        <li>
-          <a href="/references/js-service/index.html" 
data-lang="en">English</a>
-        </li>
-        <li>
-          <a href="/cn/references/js-service/index.html" 
data-lang="zh-cn">中文</a>
-        </li>
-      </ul>
-    </div>
-  </div>
-  <div class="disclaimer">
-    <div><img 
src="//gw.alicdn.com/tfs/TB1pTBZQFXXXXX9XXXXXXXXXXXX-794-280.png" width="200px" 
alt="Apache Incubator"></div>
-    <div><span class="title">Disclaimer:</span> Apache Weex is an effort 
undergoing incubation at The Apache Software Foundation (ASF), sponsored by the 
Apache Incubator. Incubation is required of all newly accepted projects until a 
further review indicates that the infrastructure, communications, and decision 
making process have stabilized in a manner consistent with other successful ASF 
projects. While incubation status is not necessarily a reflection of the 
completeness or stability of the code, it does indicate that the project has 
yet to be fully endorsed by the ASF.</div>
-    <br/>
-  </div>
-  <hr>
-  <div class="row">
-    <p> <img src="//gw.alicdn.com/tfs/TB1bg8SQFXXXXcHXXXXXXXXXXXX-85-170.png" 
height="50px" alt="Apache"><span>Copyright(c) 2017 The Apache Software 
Foundation. Licensed under the </span> <a 
href="http://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 
2.0</a></p>
-  </div>
-  <div class="row clearfix">
-    <div></div>
-  </div>
-</footer>
-  <div style="display: none;">
-  <script src="//s95.cnzz.com/z_stat.php?id=1261496509&web_id=1261496509" 
language="JavaScript"></script>
-</div>
-
-  <script src="/js/reqwest.js"></script>
-  <script src="/js/common.js"></script>
-</body>
-</html>

Reply via email to