Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
王树冬 committed Jan 8, 2019
1 parent a227a48 commit 622f7d5
Show file tree
Hide file tree
Showing 35 changed files with 240 additions and 43 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion common.5df472.js → common.b9175b.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/about/introduce-cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/about/introduce.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/advanced/introduce-cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/advanced/introduce.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/api/introduce-cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/api/introduce.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/base/introduce-cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/base/introduce.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/base/shudong-cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/base/shudong.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/base/stark-cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion docs/base/stark.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
4 changes: 2 additions & 2 deletions docs/faq/custom-share-cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<link href="/index.9ba052-1.css" rel="stylesheet"><link href="/index.9ba052-2.css" rel="stylesheet"></head>
<body>
<div id="react-content">
<div class="page-wrapper"><header id="header" class="clearfix"><div class="ant-row"><div class="ant-col-xs-24 ant-col-sm-24 ant-col-md-5 ant-col-lg-5 ant-col-xl-5 ant-col-xxl-4"><a id="logo" href="/docs/base/introduce"><img alt="logo" src="http://md.shudong.wang/fun.png"/></a></div><div class="ant-col-xs-0 ant-col-sm-0 ant-col-md-19 ant-col-lg-19 ant-col-xl-19 ant-col-xxl-20"><div id="search-box"><i class="anticon anticon-search"><svg viewBox="64 64 896 896" class="" data-icon="search" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"></path></svg></i><input type="text" placeholder="在 小程序fun 中搜索" class="ant-input"/></div><ul class="ant-menu menu-site ant-menu-light ant-menu-root ant-menu-horizontal" id="nav" role="menu"><li class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display:none" role="menuitem"><div class="ant-menu-submenu-title" aria-expanded="false" aria-haspopup="true"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li><li class="ant-menu-item ant-menu-item-selected" role="menuitem"><a href="/docs/faq/introduce"><span>常见问题</span></a></li><li class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display:none" role="menuitem"><div class="ant-menu-submenu-title" aria-expanded="false" aria-haspopup="true"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li><li class="ant-menu-item" role="menuitem"><a href="/docs/taro/introduce"><span>taro常见问题</span></a></li><li class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display:none" role="menuitem"><div class="ant-menu-submenu-title" aria-expanded="false" aria-haspopup="true"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li><li class="ant-menu-item" role="menuitem"><a href="/docs/about/introduce"><span>关于</span></a></li><li class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="visibility:hidden;position:absolute" role="menuitem"><div class="ant-menu-submenu-title" aria-expanded="false" aria-haspopup="true"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li></ul></div></div></header><div class="main-wrapper"><div class="ant-row"><div class="main-menu ant-col-xs-24 ant-col-sm-24 ant-col-md-24 ant-col-lg-6 ant-col-xl-5 ant-col-xxl-4"><ul class="ant-menu aside-container menu-site ant-menu-light ant-menu-root ant-menu-inline" role="menu"><li class="ant-menu-item" role="menuitem" style="padding-left:40px"><a href="/docs/faq/introduce">小程序常见问题目录</a></li><li class="ant-menu-item" role="menuitem" style="padding-left:40px"><a href="/docs/faq/image-best">微信小程序图片如何最佳处理?</a></li><li class="ant-menu-item" role="menuitem" style="padding-left:40px"><a href="/docs/faq/get-dom">微信小程序在js里面怎么获取dom?</a></li><li class="ant-menu-item ant-menu-item-selected" role="menuitem" style="padding-left:40px"><a href="/docs/faq/custom-share">微信小程序怎么自定义点击按钮弹出分享窗口?</a></li><li class="ant-menu-item" role="menuitem" style="padding-left:40px"><a href="/docs/faq/disable-scroll">微信小程序怎么让页面滚动和禁用滚动?</a></li></ul></div><div class="main-container ant-col-xs-24 ant-col-sm-24 ant-col-md-24 ant-col-lg-18 ant-col-xl-19 ant-col-xxl-20"><article class="markdown"><h1>微信小程序怎么自定义点击按钮弹出分享窗口?</h1><section class="markdown"><h4 id="在dom上添加-open-type=&#x27;share&#x27;"><span>在dom上添加 open-type=&#x27;share&#x27;</span><a href="#在dom上添加-open-type=&#x27;share&#x27;" class="anchor">#</a></h4><pre class="language-null"><code> <span class="token operator">&lt;</span>button class<span class="token operator">=</span><span class="token string">'shareBtn'</span> open<span class="token operator">-</span>type<span class="token operator">=</span><span class="token string">'share'</span> <span class="token operator">></span><span class="token operator">&lt;</span>text<span class="token operator">></span>分享小程序<span class="token operator">&lt;</span><span class="token operator">/</span>text<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>button<span class="token operator">></span></code></pre><h4 id="增加分享函数"><span>增加分享函数</span><a href="#增加分享函数" class="anchor">#</a></h4><pre class="language-null"><code> <span class="token function">onShareAppMessage</span><span class="token punctuation">(</span>res<span class="token punctuation">)</span> {
<div class="page-wrapper"><header id="header" class="clearfix"><div class="ant-row"><div class="ant-col-xs-24 ant-col-sm-24 ant-col-md-5 ant-col-lg-5 ant-col-xl-5 ant-col-xxl-4"><a id="logo" href="/docs/base/introduce"><img alt="logo" src="http://md.shudong.wang/fun.png"/></a></div><div class="ant-col-xs-0 ant-col-sm-0 ant-col-md-19 ant-col-lg-19 ant-col-xl-19 ant-col-xxl-20"><div id="search-box"><i class="anticon anticon-search"><svg viewBox="64 64 896 896" class="" data-icon="search" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"></path></svg></i><input type="text" placeholder="在 小程序fun 中搜索" class="ant-input"/></div><ul class="ant-menu menu-site ant-menu-light ant-menu-root ant-menu-horizontal" id="nav" role="menu"><li class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display:none" role="menuitem"><div class="ant-menu-submenu-title" aria-expanded="false" aria-haspopup="true"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li><li class="ant-menu-item ant-menu-item-selected" role="menuitem"><a href="/docs/faq/introduce"><span>常见问题</span></a></li><li class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display:none" role="menuitem"><div class="ant-menu-submenu-title" aria-expanded="false" aria-haspopup="true"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li><li class="ant-menu-item" role="menuitem"><a href="/docs/taro/introduce"><span>taro常见问题</span></a></li><li class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display:none" role="menuitem"><div class="ant-menu-submenu-title" aria-expanded="false" aria-haspopup="true"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li><li class="ant-menu-item" role="menuitem"><a href="/docs/about/introduce"><span>关于</span></a></li><li class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="visibility:hidden;position:absolute" role="menuitem"><div class="ant-menu-submenu-title" aria-expanded="false" aria-haspopup="true"><span>···</span><i class="ant-menu-submenu-arrow"></i></div></li></ul></div></div></header><div class="main-wrapper"><div class="ant-row"><div class="main-menu ant-col-xs-24 ant-col-sm-24 ant-col-md-24 ant-col-lg-6 ant-col-xl-5 ant-col-xxl-4"><ul class="ant-menu aside-container menu-site ant-menu-light ant-menu-root ant-menu-inline" role="menu"><li class="ant-menu-item" role="menuitem" style="padding-left:40px"><a href="/docs/faq/introduce">小程序常见问题目录</a></li><li class="ant-menu-item" role="menuitem" style="padding-left:40px"><a href="/docs/faq/image-best">微信小程序图片如何最佳处理?</a></li><li class="ant-menu-item" role="menuitem" style="padding-left:40px"><a href="/docs/faq/xcx-awesome">微信小程序开发资源汇总</a></li><li class="ant-menu-item" role="menuitem" style="padding-left:40px"><a href="/docs/faq/get-dom">微信小程序在js里面怎么获取dom?</a></li><li class="ant-menu-item ant-menu-item-selected" role="menuitem" style="padding-left:40px"><a href="/docs/faq/custom-share">微信小程序怎么自定义点击按钮弹出分享窗口?</a></li><li class="ant-menu-item" role="menuitem" style="padding-left:40px"><a href="/docs/faq/disable-scroll">微信小程序怎么让页面滚动和禁用滚动?</a></li></ul></div><div class="main-container ant-col-xs-24 ant-col-sm-24 ant-col-md-24 ant-col-lg-18 ant-col-xl-19 ant-col-xxl-20"><article class="markdown"><h1>微信小程序怎么自定义点击按钮弹出分享窗口?</h1><section class="markdown"><h4 id="在dom上添加-open-type=&#x27;share&#x27;"><span>在dom上添加 open-type=&#x27;share&#x27;</span><a href="#在dom上添加-open-type=&#x27;share&#x27;" class="anchor">#</a></h4><pre class="language-null"><code> <span class="token operator">&lt;</span>button class<span class="token operator">=</span><span class="token string">'shareBtn'</span> open<span class="token operator">-</span>type<span class="token operator">=</span><span class="token string">'share'</span> <span class="token operator">></span><span class="token operator">&lt;</span>text<span class="token operator">></span>分享小程序<span class="token operator">&lt;</span><span class="token operator">/</span>text<span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>button<span class="token operator">></span></code></pre><h4 id="增加分享函数"><span>增加分享函数</span><a href="#增加分享函数" class="anchor">#</a></h4><pre class="language-null"><code> <span class="token function">onShareAppMessage</span><span class="token punctuation">(</span>res<span class="token punctuation">)</span> {
<span class="token keyword">if</span> <span class="token punctuation">(</span>res<span class="token punctuation">.</span>from <span class="token operator">==</span><span class="token operator">=</span> <span class="token string">'button'</span><span class="token punctuation">)</span> {
<span class="token operator">/</span><span class="token operator">/</span> 来自页面内转发按钮
console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>res<span class="token punctuation">.</span>target<span class="token punctuation">)</span>
Expand All @@ -103,5 +103,5 @@
</div>
<script src="/common.js"></script>
<script src="/index.js"></script>
<script type="text/javascript" src="/runtime.5b3026.js"></script><script type="text/javascript" src="/common.5df472.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
<script type="text/javascript" src="/runtime.4b3591.js"></script><script type="text/javascript" src="/common.b9175b.js"></script><script type="text/javascript" src="/index.bd386d.js"></script></body>
</html>
Loading

0 comments on commit 622f7d5

Please sign in to comment.