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:46 UTC
[46/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/playground.html
----------------------------------------------------------------------
diff --git a/content/cn/playground.html b/content/cn/playground.html
new file mode 100644
index 0000000..098108e
--- /dev/null
+++ b/content/cn/playground.html
@@ -0,0 +1,216 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+
+ <title>Weex</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ <meta property="og:type" content="website">
+<meta property="og:title" content="Weex">
+<meta property="og:url" content="https://weex.apache.org/cn/playground.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.830Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="Weex">
+
+ <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="playground" class="lang-cn">
+
+ <script>
+ window.PAGE_TYPE = "playground";
+ 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="wrapper playground-wrapper clearfix">
+ <div class="left">
+ <h2>Weex Playground</h2>
+ <p>Weex Native \u8fd0\u884c\u65f6\u5b9e\u4f8b & Weex \u6587\u4ef6\u9884\u89c8\u5de5\u5177\u3002</p>
+ <div class="download clearfix">
+ <img class="qr-code" src="//gw.alicdn.com/tps/TB1PZ1HPXXXXXctXVXXXXXXXXXX-280-280.png" alt="playground qr code">
+ <ul class="links">
+ <li class="ios">
+ <a href="" id="ios-link" class="link" target="_blank">iOS</a>
+ </li>
+ <li class="android">
+ <a href="" id="android-link" class="link">Android</a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ <div class="left">
+ <img src="//gw.alicdn.com/tps/TB1831MPXXXXXXzXVXXXXXXXXXX-333-502.png" alt="">
+ </div>
+</div>
+
+<script type="text/javascript">
+ function parseWeexVersion(data){
+ document.getElementById("ios-link").href = data.iosDownload
+ document.getElementById("android-link").href = data.androidDownload
+ }
+
+ window.parseWeexVersion = parseWeexVersion;
+</script>
+<script type="text/javascript" src="https://h5.m.taobao.com/js/weex/playground/app/info.js "></script>
+
+ <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="/playground.html">English</a>
+ </li>
+ <li>
+ <a href="/cn/playground.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&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/references/advanced/extend-jsfm.html
----------------------------------------------------------------------
diff --git a/content/cn/references/advanced/extend-jsfm.html b/content/cn/references/advanced/extend-jsfm.html
new file mode 100644
index 0000000..161e21f
--- /dev/null
+++ b/content/cn/references/advanced/extend-jsfm.html
@@ -0,0 +1,1427 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+
+ <title>\u62d3\u5c55 JS framework | Weex</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ <meta name="description" content="\u5b9a\u5236\u81ea\u5df1\u7684 JS Framework\u8fd9\u90e8\u5206\u6269\u5c55\u80fd\u529b\u8fd8\u5728\u8ba8\u8bba\u5c1d\u8bd5\u4e2d\uff0c\u53ef\u80fd\u968f\u65f6\u4f1a\u6709\u8c03\u6574\uff0c\u8bf7\u7559\u610f\u3002
+Weex \u5e0c\u671b\u80fd\u591f\u5c0a\u91cd\u5c3d\u53ef\u80fd\u591a\u7684\u5f00\u53d1\u8005\u7684\u4f7f\u7528\u4e60\u60ef\uff0c\u6240\u4ee5\u9664\u4e86 Weex \u5b98\u65b9\u652f\u6301\u7684 Vue 2.0 \u4e4b\u5916\uff0c\u5f00\u53d1\u8005\u8fd8\u53ef\u4ee5\u5b9a\u5236\u5e76\u6a2a\u5411\u6269\u5c55\u81ea\u5df1\u7684\u6216\u81ea\u5df1\u559c\u6b22\u7684 JS Framework\u3002\u5b8c\u6574\u4e00\u5957 JS Framework \u7684\u5b9a\u5236\u548c\u6269\u5c55\u9700\u8981\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a
+
+\u9996\u5148\u4f60\u8981\u6709\u4e00\u5957\u5b8c\u6574\u7684 JS Framework\u3002
+\u4e86\u89e3 We">
+<meta property="og:type" content="website">
+<meta property="og:title" content="\u62d3\u5c55 JS framework">
+<meta property="og:url" content="https://weex.apache.org/cn/references/advanced/extend-jsfm.html">
+<meta property="og:site_name" content="Weex">
+<meta property="og:description" content="\u5b9a\u5236\u81ea\u5df1\u7684 JS Framework\u8fd9\u90e8\u5206\u6269\u5c55\u80fd\u529b\u8fd8\u5728\u8ba8\u8bba\u5c1d\u8bd5\u4e2d\uff0c\u53ef\u80fd\u968f\u65f6\u4f1a\u6709\u8c03\u6574\uff0c\u8bf7\u7559\u610f\u3002
+Weex \u5e0c\u671b\u80fd\u591f\u5c0a\u91cd\u5c3d\u53ef\u80fd\u591a\u7684\u5f00\u53d1\u8005\u7684\u4f7f\u7528\u4e60\u60ef\uff0c\u6240\u4ee5\u9664\u4e86 Weex \u5b98\u65b9\u652f\u6301\u7684 Vue 2.0 \u4e4b\u5916\uff0c\u5f00\u53d1\u8005\u8fd8\u53ef\u4ee5\u5b9a\u5236\u5e76\u6a2a\u5411\u6269\u5c55\u81ea\u5df1\u7684\u6216\u81ea\u5df1\u559c\u6b22\u7684 JS Framework\u3002\u5b8c\u6574\u4e00\u5957 JS Framework \u7684\u5b9a\u5236\u548c\u6269\u5c55\u9700\u8981\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a
+
+\u9996\u5148\u4f60\u8981\u6709\u4e00\u5957\u5b8c\u6574\u7684 JS Framework\u3002
+\u4e86\u89e3 We">
+<meta property="og:updated_time" content="2017-02-01T06:23:21.833Z">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:title" content="\u62d3\u5c55 JS framework">
+<meta name="twitter:description" content="\u5b9a\u5236\u81ea\u5df1\u7684 JS Framework\u8fd9\u90e8\u5206\u6269\u5c55\u80fd\u529b\u8fd8\u5728\u8ba8\u8bba\u5c1d\u8bd5\u4e2d\uff0c\u53ef\u80fd\u968f\u65f6\u4f1a\u6709\u8c03\u6574\uff0c\u8bf7\u7559\u610f\u3002
+Weex \u5e0c\u671b\u80fd\u591f\u5c0a\u91cd\u5c3d\u53ef\u80fd\u591a\u7684\u5f00\u53d1\u8005\u7684\u4f7f\u7528\u4e60\u60ef\uff0c\u6240\u4ee5\u9664\u4e86 Weex \u5b98\u65b9\u652f\u6301\u7684 Vue 2.0 \u4e4b\u5916\uff0c\u5f00\u53d1\u8005\u8fd8\u53ef\u4ee5\u5b9a\u5236\u5e76\u6a2a\u5411\u6269\u5c55\u81ea\u5df1\u7684\u6216\u81ea\u5df1\u559c\u6b22\u7684 JS Framework\u3002\u5b8c\u6574\u4e00\u5957 JS Framework \u7684\u5b9a\u5236\u548c\u6269\u5c55\u9700\u8981\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a
+
+\u9996\u5148\u4f60\u8981\u6709\u4e00\u5957\u5b8c\u6574\u7684 JS Framework\u3002
+\u4e86\u89e3 We">
+
+ <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 "><a></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/slider.html" class="sidebar-link "><slider></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/switch.html" class="sidebar-link "><switch></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/text.html" class="sidebar-link "><text></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/textarea.html" class="sidebar-link "><textarea></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/video.html" class="sidebar-link "><video></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/web.html" class="sidebar-link "><web></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/div.html" class="sidebar-link "><div></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/image.html" class="sidebar-link "><image></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/list.html" class="sidebar-link "><list></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/input.html" class="sidebar-link "><input></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/cell.html" class="sidebar-link "><cell></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/loading.html" class="sidebar-link "><loading></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/refresh.html" class="sidebar-link "><refresh></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/scroller.html" class="sidebar-link "><scroller></a>
+ </li>
+
+ </ul>
+
+ </li>
+
+ <li>
+ <h3 class="chapter-title"><a href="/cn/references/modules/index.html" class="sidebar-link ">\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 ">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 current ">\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 "><a></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/slider.html" class="sidebar-link "><slider></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/indicator.html" class="sidebar-link "><indicator></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/switch.html" class="sidebar-link "><switch></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/text.html" class="sidebar-link "><text></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/textarea.html" class="sidebar-link "><textarea></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/video.html" class="sidebar-link "><video></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/web.html" class="sidebar-link "><web></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/div.html" class="sidebar-link "><div></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/image.html" class="sidebar-link "><image></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/list.html" class="sidebar-link "><list></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/input.html" class="sidebar-link "><input></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/cell.html" class="sidebar-link "><cell></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/loading.html" class="sidebar-link "><loading></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/refresh.html" class="sidebar-link "><refresh></a>
+ </li>
+
+ <li>
+ <a href="/cn/references/components/scroller.html" class="sidebar-link "><scroller></a>
+ </li>
+
+ </ul>
+
+ </li>
+
+ <li>
+ <h3 class="chapter-title"><a href="/cn/references/modules/index.html" class="sidebar-link ">\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 ">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 current ">\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">
+ \u62d3\u5c55 JS framework
+ </h1>
+
+
+ <time class="article-date" datetime="2017-02-01T06:23:21.833Z">Updated time: 01/02/2017</time>
+</header>
+ <h1 id="\u5b9a\u5236\u81ea\u5df1\u7684-JS-Framework"><a href="#\u5b9a\u5236\u81ea\u5df1\u7684-JS-Framework" class="headerlink" title="\u5b9a\u5236\u81ea\u5df1\u7684 JS Framework"></a>\u5b9a\u5236\u81ea\u5df1\u7684 JS Framework</h1><p><em>\u8fd9\u90e8\u5206\u6269\u5c55\u80fd\u529b\u8fd8\u5728\u8ba8\u8bba\u5c1d\u8bd5\u4e2d\uff0c\u53ef\u80fd\u968f\u65f6\u4f1a\u6709\u8c03\u6574\uff0c\u8bf7\u7559\u610f\u3002</em></p>
+<p>Weex \u5e0c\u671b\u80fd\u591f\u5c0a\u91cd\u5c3d\u53ef\u80fd\u591a\u7684\u5f00\u53d1\u8005\u7684\u4f7f\u7528\u4e60\u60ef\uff0c\u6240\u4ee5\u9664\u4e86 Weex \u5b98\u65b9\u652f\u6301\u7684 Vue 2.0 \u4e4b\u5916\uff0c\u5f00\u53d1\u8005\u8fd8\u53ef\u4ee5\u5b9a\u5236\u5e76\u6a2a\u5411\u6269\u5c55\u81ea\u5df1\u7684\u6216\u81ea\u5df1\u559c\u6b22\u7684 JS Framework\u3002\u5b8c\u6574\u4e00\u5957 JS Framework \u7684\u5b9a\u5236\u548c\u6269\u5c55\u9700\u8981\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a</p>
+<ol>
+<li>\u9996\u5148\u4f60\u8981\u6709\u4e00\u5957\u5b8c\u6574\u7684 JS Framework\u3002</li>
+<li>\u4e86\u89e3 Weex \u7684 JS \u5f15\u64ce\u7684\u7279\u6027\u652f\u6301\u60c5\u51b5\u3002</li>
+<li>\u9002\u914d Weex \u7684 native DOM APIs\u3002</li>
+<li>\u9002\u914d Weex \u7684\u521d\u59cb\u5316\u5165\u53e3\u548c\u591a\u5b9e\u4f8b\u7ba1\u7406\u673a\u5236\u3002</li>
+<li>\u5728 Weex JS runtime \u7684 framework \u914d\u7f6e\u4e2d\u52a0\u5165\u81ea\u5df1\u7684 JS Framework \u7136\u540e\u6253\u5305\u3002</li>
+<li>\u57fa\u4e8e\u8be5 JS Framework \u64b0\u5199 JS bundle\uff0c\u5e76\u52a0\u5165\u7279\u5b9a\u7684\u524d\u7f00\u6ce8\u91ca\uff0c\u4ee5\u4fbf Weex JS runtime \u80fd\u591f\u6b63\u786e\u8bc6\u522b\u3002</li>
+</ol>
+<h2 id="Weex-JS-\u5f15\u64ce\u7684\u7279\u6027\u652f\u6301\u60c5\u51b5"><a href="#Weex-JS-\u5f15\u64ce\u7684\u7279\u6027\u652f\u6301\u60c5\u51b5" class="headerlink" title="Weex JS \u5f15\u64ce\u7684\u7279\u6027\u652f\u6301\u60c5\u51b5"></a>Weex JS \u5f15\u64ce\u7684\u7279\u6027\u652f\u6301\u60c5\u51b5</h2><ul>
+<li>\u5728 iOS \u4e0b\uff0cWeex \u4f7f\u7528\u7684\u662f\u7cfb\u7edf\u81ea\u5e26\u7684 JavaScriptCore\uff0c\u6240\u4ee5 ES \u652f\u6301\u60c5\u51b5\u53d6\u51b3\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\u3002\u76ee\u524d\u4fdd\u5b88\u5224\u65ad\uff0cES5 \u7684\u7279\u6027\u5e02\u9762\u4e0a\u4e3b\u6d41\u7684 iOS \u8bbe\u5907\u90fd\u662f\u53ef\u4ee5\u5b8c\u7f8e\u652f\u6301\u7684\uff0c\u4f46\u662f ES6+ \u7684\u7279\u6027\u5b58\u5728\u4e00\u5b9a\u7684\u788e\u7247\u5316\u3002</li>
+<li>\u5728 Android \u4e0b\uff0cWeex \u4f7f\u7528\u7684\u662f UC \u63d0\u4f9b\u7684 v8 \u5185\u6838\uff0c\u51fa\u4e8e\u4f53\u79ef\u3001\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u7684\u8003\u8651\uff0c\u6211\u4eec\u4f7f\u7528\u7684\u5e76\u4e0d\u662f\u6700\u65b0\u7248\u672c\u7684 v8 \u5185\u6838\uff0c\u540c\u6837\u7684\u4fdd\u5b88\u5224\u65ad\uff0cES5 \u7279\u6027\u80fd\u591f\u5168\u90e8\u652f\u6301\uff0c\u5305\u62ec\u4e25\u683c\u6a21\u5f0f\u3001<code>Object.freeze</code> \u7b49\u3002</li>
+<li>Weex JS \u5f15\u64ce\u4e0d\u652f\u6301 HTML DOM APIs \u548c HTML5 JS APIs\uff0c\u8fd9\u5305\u62ec <code>document</code>, <code>setTimeout</code> \u7b49\u3002</li>
+<li>\u5728\u6b64\u57fa\u7840\u4e0a\uff0c\u6211\u4eec\u52a0\u5165\u4e86 <code>Promise</code> \u7684 polyfill\uff0c\u4ee5\u53ca <code>console</code> \u7684 polyfill\u3002</li>
+<li>\u989d\u5916\u7684\uff0c\u4e3a\u4e86\u5c3d\u53ef\u80fd\u7684\u786e\u4fdd JS \u5f15\u64ce\u7684\u957f\u6548\u5185\u5b58\u7ba1\u7406\uff0c\u6211\u4eec\u5bf9\u4e00\u4e2a\u901a\u7528\u7684\u5168\u5c40\u5bf9\u8c61\u8fdb\u884c\u4e86 <code>Object.freeze()</code> \u51bb\u7ed3\u64cd\u4f5c\uff0c\u8fd9\u5305\u62ec\uff1a<ul>
+<li><code>Object</code></li>
+<li><code>Object.prototype</code></li>
+<li><code>Array</code></li>
+<li><code>Array.prototype</code></li>
+<li><code>String.prototype</code></li>
+<li><code>Number.prototype</code></li>
+<li><code>Boolean.prototype</code></li>
+<li><code>Error.prototype</code></li>
+<li><code>Date.prototype</code></li>
+<li><code>RegExp.prototype</code></li>
+</ul>
+</li>
+</ul>
+<h2 id="\u9002\u914d-Weex-\u7684\u521d\u59cb\u5316\u5165\u53e3\u548c\u591a\u5b9e\u4f8b\u7ba1\u7406\u673a\u5236"><a href="#\u9002\u914d-Weex-\u7684\u521d\u59cb\u5316\u5165\u53e3\u548c\u591a\u5b9e\u4f8b\u7ba1\u7406\u673a\u5236" class="headerlink" title="\u9002\u914d Weex \u7684\u521d\u59cb\u5316\u5165\u53e3\u548c\u591a\u5b9e\u4f8b\u7ba1\u7406\u673a\u5236"></a>\u9002\u914d Weex \u7684\u521d\u59cb\u5316\u5165\u53e3\u548c\u591a\u5b9e\u4f8b\u7ba1\u7406\u673a\u5236</h2><p>\u5f00\u53d1\u8005\u63d0\u4f9b\u7684 JS Framework \u6700\u7ec8\u9700\u8981\u5305\u88c5\u6210\u4e00\u4e2a CommonJS \u5305\uff0c\u5e76\u4e14\u8fd9\u4e2a\u5305\u9700\u8981\u5bf9\u5916\u66b4\u9732\u4ee5\u4e0b\u65b9\u6cd5\uff1a</p>
+<h3 id="\u6846\u67b6\u521d\u59cb\u5316"><a href="#\u6846\u67b6\u521d\u59cb\u5316" class="headerlink" title="\u6846\u67b6\u521d\u59cb\u5316"></a>\u6846\u67b6\u521d\u59cb\u5316</h3><ul>
+<li><code>init(config)</code><ul>
+<li><code>config</code><ul>
+<li><code>Document</code></li>
+<li><code>Element</code></li>
+<li><code>Comment</code></li>
+<li><code>TaskSender</code></li>
+<li><code>CallbackManager</code></li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<p>\u8be5\u65b9\u6cd5\u4f1a\u628a Weex \u63d0\u4f9b\u7684 Native DOM \u7c7b\u548c\u4e24\u4e2a\u8f85\u52a9\u7c7b\u653e\u5230 <code>config</code> \u53c2\u6570\u4e2d\uff0c\u5e76\u5141\u8bb8\u6846\u67b6\u672c\u8eab\u5b8c\u6210\u521d\u59cb\u5316\u3002</p>
+<p><em>\u5c0f\u63d0\u793a\uff1a\u540c\u65f6\uff0c\u6846\u67b6\u4f5c\u8005\u4e5f\u80fd\u591f\u901a\u8fc7\u5728\u6846\u67b6\u521d\u59cb\u5316\u65f6\u4f20\u5165\u4e0d\u540c\u7684 <code>config</code> \u6765\u8fdb\u884c\u6846\u67b6\u7684\u6d4b\u8bd5\u6216\u73af\u5883\u6a21\u62df\u3002</em></p>
+<h4 id="\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd"><a href="#\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd" class="headerlink" title="\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd"></a>\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd</h4><ul>
+<li><code>TaskSender</code>: wip\u2026</li>
+<li><code>CallbackManager</code>: wip\u2026</li>
+</ul>
+<h3 id="\u6ce8\u518c\u53ef\u7528\u7684-native-\u7ec4\u4ef6\u548c\u6a21\u5757"><a href="#\u6ce8\u518c\u53ef\u7528\u7684-native-\u7ec4\u4ef6\u548c\u6a21\u5757" class="headerlink" title="\u6ce8\u518c\u53ef\u7528\u7684 native \u7ec4\u4ef6\u548c\u6a21\u5757"></a>\u6ce8\u518c\u53ef\u7528\u7684 native \u7ec4\u4ef6\u548c\u6a21\u5757</h3><ul>
+<li><code>registerComponents(components)</code></li>
+<li><code>registerModules(modules)</code></li>
+</ul>
+<p>\u8fd9\u4e24\u4e2a\u65b9\u6cd5\u4f1a\u5728\u6846\u67b6\u521d\u59cb\u5316\u4e4b\u540e\u7acb\u523b\u8c03\u7528\uff0c\u8fd9\u6837\u6846\u67b6\u5c31\u80fd\u591f\u77e5\u9053\u5f53\u524d\u7684\u5ba2\u6237\u7aef\u652f\u6301\u54ea\u4e9b\u7ec4\u4ef6\u548c\u6a21\u5757\uff0c\u5728\u4e00\u4e9b\u7279\u6b8a\u903b\u8f91\u6216\u5fc5\u8981\u7684\u60c5\u51b5\u4e0b\uff0c\u6709\u673a\u4f1a\u4e3a\u6846\u67b6\u672c\u8eab\u63d0\u4f9b\u53c2\u8003\u4fe1\u606f\u3002</p>
+<h4 id="\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd-1"><a href="#\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd-1" class="headerlink" title="\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd"></a>\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd</h4><ul>
+<li><code>components: Array</code>: \u63cf\u8ff0\u7ec4\u4ef6\u7684\u6570\u7ec4\uff0c\u6bcf\u4e00\u9879\u5305\u62ec\uff1a<ul>
+<li><code>type: string</code>: \u7ec4\u4ef6\u540d\u79f0\uff0c\u6bd4\u5982 <code>div</code>\u3002</li>
+<li><code>methods: string[]</code>: \u53ef\u9009\u9879\uff0c\u8be5\u7ec4\u4ef6\u652f\u6301\u7684\u65b9\u6cd5\u540d\u79f0\u5217\u8868\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u9075\u5faa Weex \u7684 native DOM APIs \u7684\u7ec4\u4ef6\u65b9\u6cd5\u8c03\u7528\u65b9\u5f0f\u3002</li>
+</ul>
+</li>
+<li><code>modules: Object</code>: \u63cf\u8ff0\u4e00\u7cfb\u5217\u6a21\u5757\u7684\u6563\u5217\u8868\uff0c\u6bcf\u4e00\u9879\u7684 key \u662f\u6a21\u5757\u540d\uff0c\u6bcf\u4e00\u9879\u7684\u503c\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u6570\u7ec4\u91cc\u7684\u6bcf\u4e00\u9879\u63cf\u8ff0\u4e86\u4e00\u4e2a\u8be5\u6a21\u5757\u4e2d\u7684\u4e00\u4e2a\u65b9\u6cd5\uff0c\u8be5\u65b9\u6cd5\u7684\u4fe1\u606f\u5305\u62ec\uff1a<ul>
+<li><code>name: string</code>: \u65b9\u6cd5\u540d</li>
+<li><code>args: string[]</code>: \u53c2\u6570\u4e2a\u6570\u548c\u7c7b\u578b\u63cf\u8ff0</li>
+</ul>
+</li>
+</ul>
+<p>\u4f8b\u5982\uff1a</p>
+<figure class="highlight js"><table><tr><td class="code"><pre><div class="line">registerComponents([</div><div class="line"> { <span class="attr">type</span>: <span class="string">'web'</span>, <span class="attr">methods</span>: [<span class="string">'goBack'</span>, <span class="string">'goForward'</span>, <span class="string">'refresh'</span>]}</div><div class="line">])</div><div class="line"></div><div class="line">registerModules({</div><div class="line"> <span class="attr">event</span>: [</div><div class="line"> {<span class="attr">name</span>: <span class="string">'openURL'</span>, <span class="attr">args</span>: [<span class="string">'string'</span>]}</div><div class="line"> ]</div><div class="line">})</div></pre></td></tr></table></figure>
+<h3 id="\u591a\u5b9e\u4f8b\u751f\u547d\u5468\u671f\u7ba1\u7406"><a href="#\u591a\u5b9e\u4f8b\u751f\u547d\u5468\u671f\u7ba1\u7406" class="headerlink" title="\u591a\u5b9e\u4f8b\u751f\u547d\u5468\u671f\u7ba1\u7406"></a>\u591a\u5b9e\u4f8b\u751f\u547d\u5468\u671f\u7ba1\u7406</h3><ul>
+<li><code>createInstance(instanceId, code, config, data, env)</code></li>
+<li><code>refreshInstance(instanceId, data)</code></li>
+<li><code>destroyInstance(instanceId)</code></li>
+</ul>
+<p>\u6bcf\u4e2a Weex \u9875\u9762\u90fd\u6709\u88ab\u521b\u5efa\u3001\u88ab\u9500\u6bc1\u4e24\u4e2a\u5fc5\u7ecf\u9636\u6bb5\uff0c\u540c\u65f6\u5728 Weex \u9875\u9762\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0cnative \u6709\u673a\u4f1a\u4e3b\u52a8\u5411 Weex \u9875\u9762\u53d1\u9001\u6d88\u606f\uff0c\u4e0d\u540c\u7684\u6846\u67b6\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u6846\u67b6\u7684\u8bbe\u8ba1\u5bf9\u8fd9\u6837\u7684\u6d88\u606f\u6709\u81ea\u5df1\u7684\u7406\u89e3\u548c\u8bbe\u8ba1\u5b9e\u73b0\u3002</p>
+<h4 id="\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd-2"><a href="#\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd-2" class="headerlink" title="\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd"></a>\u53c2\u6570\u683c\u5f0f\u4ecb\u7ecd</h4><ul>
+<li><code>instanceId: string</code>: \u8be5 Weex \u9875\u9762\u7684\u552f\u4e00 id\uff0c\u7531 native \u4ea7\u751f\u3002</li>
+<li><code>code: string</code>: \u8be5 Weex \u9875\u9762\u7684 JS bundle \u7684\u4ee3\u7801\uff0c\u901a\u8fc7 native \u4f20\u5165\u3002</li>
+<li><code>config: Object?</code>: \u8be5 Weex \u9875\u9762\u7684\u914d\u7f6e\u4fe1\u606f\uff0c\u6bd4\u5982\u4ee3\u8868\u8be5 bundle \u5730\u5740\u7684 <code>bundleUrl</code>\uff0c\u7531 native \u914d\u7f6e\u4ea7\u751f\uff0c\u548c JS bundle \u672c\u8eab\u7684\u5185\u5bb9\u65e0\u5173\u3002</li>
+<li><code>data: Object?</code>: Native \u6709\u673a\u4f1a\u5728\u521b\u5efa\u4e00\u4e2a Weex \u9875\u9762\u7684\u65f6\u5019\uff0c\u4f20\u5165\u4e00\u4efd\u5916\u90e8\u6570\u636e\uff0cJS \u6846\u67b6\u4e5f\u6709\u673a\u4f1a\u63a5\u6b64\u673a\u4f1a\u4e3a\u76f8\u540c\u7684 JS bundle \u914d\u5408\u4e0d\u540c\u7684 <code>data</code> \u751f\u6210\u4e0d\u540c\u7684\u9875\u9762\u5185\u5bb9\u3002</li>
+<li><code>env: Object?</code>: \u5f53\u524d Weex \u9875\u9762\u7684\u76f8\u5173\u73af\u5883\u4fe1\u606f\uff0c\u5404\u5b57\u6bb5\u7684\u542b\u4e49\uff1a<ul>
+<li><code>info: Object</code>: \u6846\u67b6 info \u4fe1\u606f\uff0c\u8be6\u89c1\u4e4b\u540e\u7684 \u201cJS Bundle \u683c\u5f0f\u8981\u6c42\u201d\u3002</li>
+<li><code>config: Object</code>: \u7b49\u540c\u8be5\u65b9\u6cd5\u7684\u7b2c\u4e09\u4e2a\u53c2\u6570 <code>config</code>\u3002</li>
+<li><code>callbacks: CallbackManager</code>: \u8be5 Weex \u9875\u9762\u552f\u4e00\u7684 <code>CallbackManager</code> \u5b9e\u4f8b\u3002</li>
+<li><code>created: number</code>: \u8be5 Weex \u9875\u9762\u7684\u521b\u5efa\u65f6\u95f4\u6beb\u79d2\u6570\u3002</li>
+<li><code>framework: string</code>: \u8be5 Weex \u9875\u9762\u57fa\u4e8e\u7684\u6846\u67b6\u540d\uff0c\u7b49\u540c\u4e8e <code>info.framework</code>\u3002</li>
+</ul>
+</li>
+</ul>
+<h3 id="Native-\u901a\u4fe1"><a href="#Native-\u901a\u4fe1" class="headerlink" title="Native \u901a\u4fe1"></a>Native \u901a\u4fe1</h3><ul>
+<li><code>receiveTasks(instanceId, tasks)</code></li>
+</ul>
+<p>Native \u9664\u4e86\u901a\u8fc7 <code>refreshInstance</code> \u65b9\u6cd5\u5411 JS \u6846\u67b6\u5c42\u53d1\u9001\u6d88\u606f\u4e4b\u5916\uff0c\u66f4\u591a\u7684\u4f1a\u901a\u8fc7 <code>receiveTasks</code> \u53d1\u9001\u7528\u6237\u4e8b\u4ef6\u6216\u65b9\u6cd5\u56de\u8c03\u7ed9 JS \u6846\u67b6\u3002</p>
+<p>\u6bd4\u5982\u7528\u6237\u70b9\u51fb\u4e86\u4e00\u4e2a\u6309\u94ae\uff0cnative \u5c31\u4f1a\u53d1\u9001\u4e00\u4e2a <code>fireEvent</code> \u7c7b\u578b\u7684\u4efb\u52a1\u7ed9 JS \u6846\u67b6\uff0c\u7136\u540e JS \u6846\u67b6\u518d\u5904\u7406\u76f8\u5e94\u7684\u4e8b\u4ef6\u903b\u8f91\u3002\u8fd9\u90e8\u5206\u5de5\u4f5c\u673a\u5236\u548c native DOM \u63a5\u53e3\u4e2d\u7684 <code>addEvent</code> \u7684\u8bbe\u8ba1\u6709\u5173\u3002</p>
+<p>\u518d\u6bd4\u5982\u7528\u6237\u53d1\u8d77\u4e86\u4e00\u4e2a <code>fetch</code> \u7f51\u7edc\u8bf7\u6c42\uff0c\u5f53\u8bf7\u6c42\u5728 native \u7aef\u5b8c\u6210\u65f6\uff0c\u4f1a\u4ee5\u4e00\u4e2a <code>callback</code> \u7c7b\u578b\u7684\u4efb\u52a1\u53d1\u7ed9 JS \u6846\u67b6\u3002\u7531\u4e8e native \u65e0\u6cd5\u4f20\u9012 JavaScript \u4e2d\u7684 function\uff0c\u6240\u4ee5\u5b9e\u9645\u4e0a\u77e5\u4f1a\u53d1\u9001\u4e00\u4e2a <code>callbackId</code> \u7ed9 JS \u6846\u67b6\u3002\u8fd9\u90e8\u5206\u5de5\u4f5c\u673a\u5236\u548c\u4e4b\u524d\u51fa\u73b0\u8fc7\u7684 <code>CallbackManager</code> \u7684\u8bbe\u8ba1\u6709\u5173\u3002</p>
+<h3 id="\u8f85\u52a9\u65b9\u6cd5"><a href="#\u8f85\u52a9\u65b9\u6cd5" class="headerlink" title="\u8f85\u52a9\u65b9\u6cd5"></a>\u8f85\u52a9\u65b9\u6cd5</h3><ul>
+<li><code>getRoot(instanceId): JSON</code></li>
+</ul>
+<p>\u8be5\u65b9\u6cd5\u53ef\u4ee5\u8fd4\u56de\u6587\u6863\u4e3b\u4f53\u7ed3\u70b9\u7684\u5b8c\u6574 JSON \u63cf\u8ff0\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4ee5\u6b64\u67e5\u770b\u5230\u5b8c\u6574\u7684 native DOM \u6811\uff0c\u5177\u4f53\u8fd4\u56de\u503c\u7684\u683c\u5f0f\u548c native DOM \u63a5\u53e3\u4e2d\u7684 <code>toJSON()</code> \u65b9\u6cd5\u8fd4\u56de\u503c\u683c\u5f0f\u4e00\u81f4\u3002\u6b64\u529f\u80fd\u591a\u7528\u4f5c\u5f00\u53d1\u8005\u5de5\u5177\u6269\u5c55\u3002</p>
+<h2 id="\u5728-WeexSDK-\u4e2d\u914d\u7f6e-JS-Framework"><a href="#\u5728-WeexSDK-\u4e2d\u914d\u7f6e-JS-Framework" class="headerlink" title="\u5728 WeexSDK \u4e2d\u914d\u7f6e JS Framework"></a>\u5728 WeexSDK \u4e2d\u914d\u7f6e JS Framework</h2><h3 id="\u51c6\u5907\u597d\u4f60\u7684-JS-Framework-\u4ee3\u7801"><a href="#\u51c6\u5907\u597d\u4f60\u7684-JS-Framework-\u4ee3\u7801" class="headerlink" title="\u51c6\u5907\u597d\u4f60\u7684 JS Framework \u4ee3\u7801"></a>\u51c6\u5907\u597d\u4f60\u7684 JS Framework \u4ee3\u7801</h3><figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="comment">// your-own-js-framework.js</span></div><div class="line"></div><div class="line"><span class="keyword">export</span> <span class="function"><span class="keyword">function</span> <span class="title">init</span> (<span class="params">config</span>) </span>{ ... }</div><div class="line"></div><div class="line"><span class="keyword">export</span> <span class="function"><span class="keyword">function</span> <span class="title">registerComponents</span> (<span class="params">componen
ts</span>) </span>{ ... }</div><div class="line"><span class="keyword">export</span> <span class="function"><span class="keyword">function</span> <span class="title">registerModules</span> (<span class="params">modules</span>) </span>{ ... }</div><div class="line"></div><div class="line"><span class="keyword">export</span> <span class="function"><span class="keyword">function</span> <span class="title">createInstance</span> (<span class="params">id, code, config, data, env</span>) </span>{ ... }</div><div class="line"><span class="keyword">export</span> <span class="function"><span class="keyword">function</span> <span class="title">destroyInstance</span> (<span class="params">id</span>) </span>{ ... }</div><div class="line"><span class="keyword">export</span> <span class="function"><span class="keyword">function</span> <span class="title">refreshInstance</span> (<span class="params">id, data</span>) </span>{ ... }</div><div class="l
ine"></div><div class="line"><span class="keyword">export</span> <span class="function"><span class="keyword">function</span> <span class="title">recieveTasks</span> (<span class="params">id, tasks</span>) </span>{ ... }</div><div class="line"><span class="keyword">export</span> <span class="function"><span class="keyword">function</span> <span class="title">getRoot</span> (<span class="params">id</span>) </span>{ ... }</div></pre></td></tr></table></figure>
+<h3 id="\u6ce8\u518c\u4e00\u4e2a-JS-Framework"><a href="#\u6ce8\u518c\u4e00\u4e2a-JS-Framework" class="headerlink" title="\u6ce8\u518c\u4e00\u4e2a JS Framework"></a>\u6ce8\u518c\u4e00\u4e2a JS Framework</h3><figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="keyword">import</span> * <span class="keyword">as</span> Vue <span class="keyword">from</span> <span class="string">'...'</span></div><div class="line"><span class="keyword">import</span> * <span class="keyword">as</span> React <span class="keyword">from</span> <span class="string">'...'</span></div><div class="line"><span class="keyword">import</span> * <span class="keyword">as</span> Angular <span class="keyword">from</span> <span class="string">'...'</span></div><div class="line"></div><div class="line"><span class="keyword">export</span> <span class="keyword">default</span> { Vue, React, Angular };</div></pre></td></tr></table></figure>
+<p>\u7136\u540e\u6253\u5305 JS runtime\uff0c\u96c6\u6210\u5230 WeexSDK \u4e2d\u3002</p>
+<h3 id="JS-Bundle-\u683c\u5f0f\u8981\u6c42"><a href="#JS-Bundle-\u683c\u5f0f\u8981\u6c42" class="headerlink" title="JS Bundle \u683c\u5f0f\u8981\u6c42"></a>JS Bundle \u683c\u5f0f\u8981\u6c42</h3><p><strong>\u6846\u67b6 info</strong></p>
+<p>\u4f60\u9700\u8981\u4fdd\u969c\u57fa\u4e8e\u8be5 JS Framework \u7684 JS Bundle \u5728\u6587\u4ef6\u5f00\u5934\u5e26\u6709\u5982\u4e0b\u683c\u5f0f\u7684\u6ce8\u91ca\uff0c\u6211\u4eec\u79f0\u5176\u4e3a\u6846\u67b6 info\uff1a</p>
+<figure class="highlight javascript"><table><tr><td class="code"><pre><div class="line"><span class="comment">// { "framework": "Vue" }</span></div><div class="line">...</div></pre></td></tr></table></figure>
+<p>\u8fd9\u6837 Weex JS \u5f15\u64ce\u5c31\u4f1a\u8bc6\u522b\u51fa\u8fd9\u4e2a JS bundle \u9700\u8981\u7528 Vue \u6846\u67b6\u6765\u89e3\u6790\u3002\u5e76\u5206\u53d1\u7ed9 Vue \u6846\u67b6\u5904\u7406\u3002\u540c\u7406\uff0cWeex \u652f\u6301\u540c\u65f6\u591a\u79cd\u6846\u67b6\u5728\u4e00\u4e2a\u79fb\u52a8\u5e94\u7528\u4e2d\u5171\u5b58\u5e76\u5404\u81ea\u89e3\u6790\u57fa\u4e8e\u4e0d\u540c\u6846\u67b6\u7684 JS bundle\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/advanced/extend-jsfm.html">English</a>
+ </li>
+ <li>
+ <a href="/cn/references/advanced/extend-jsfm.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&web_id=1261102667" language="JavaScript"></script>
+</div>
+
+ <script src="/js/reqwest.js"></script>
+ <script src="/js/common.js"></script>
+</body>
+</html>