
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x45;&#x53;&#x36;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;&#xFF1A;&#x4D;&#x6F;&#x64;&#x75;&#x6C;&#x65;&#x6A21;&#x5757;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x32;&#x32;&#x2D;&#x30;&#x34;&#x2D;&#x31;&#x35;&#x20;&#x31;&#x30;&#x3A;&#x35;&#x38;&#x20;&#x41;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=4">&#x811A;&#x672C;&#x8BED;&#x8A00;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> ES6&#x6A21;&#x5757;&#x529F;&#x80FD;&#x4E3B;&#x8981;&#x7531;&#x4E24;&#x4E2A;&#x547D;&#x4EE4;&#x6784;&#x6210;&#xFF1A;export&#x548C;import&#xFF0C;export&#x547D;&#x4EE4;&#x7528;&#x4E8E;&#x5B9A;&#x4E49;&#x6A21;&#x5757;&#x7684;&#x5BF9;&#x5916;&#x63A5;&#x53E3;&#xFF0C;import&#x547D;&#x4EE4;&#x7528;&#x4E8E;&#x52A0;&#x8F7D;&#x6A21;&#x5757;&#x3002;<br/>export&#x547D;&#x4EE4;&#x5B9A;&#x4E49;&#x6A21;&#x5757;<br/>&#x4E0B;&#x8FB9;&#x6211;&#x4EEC;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;Module&#x6A21;&#x5757;(mod.js)&#xFF0C;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#x5C31;&#x662F;&#x4E00;&#x4E2A;&#x6A21;&#x5757;&#xFF0C;&#x6240;&#x6709;&#x8981;&#x63D0;&#x4F9B;&#x7ED9;&#x6A21;&#x5757;&#x5916;&#x90E8;&#x811A;&#x672C;&#x8C03;&#x7528;&#x7684;&#x5BF9;&#x5916;&#x63A5;&#x53E3;(&#x53D8;&#x91CF;&#x3001;&#x51FD;&#x6570;&#x3001;&#x5BF9;&#x8C61;&#x3001;&#x7C7B;&#x7B49;)&#x5FC5;&#x987B;&#x52A0;&#x4E0A;export&#x547D;&#x4EE4;&#xFF0C;&#x5426;&#x5219;&#x5916;&#x90E8;&#x811A;&#x672C;&#x65E0;&#x6CD5;&#x8C03;&#x7528;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;//export&#x53D8;&#x91CF;<br/>export let name = &#39;Jack&#39;;<br/>//export&#x51FD;&#x6570;<br/>export function hello(){<br/>&nbsp;&nbsp;&nbsp;&nbsp;console.log(&#39;hello,&#39; + name);<br/>}<br/>&#x5BF9;&#x5916;&#x63A5;&#x53E3;&#x4E5F;&#x53EF;&#x4EE5;&#x5148;&#x58F0;&#x660E;&#xFF0C;&#x518D;export&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;//export&#x53D8;&#x91CF;<br/>let name = &#39;Jack&#39;;<br/>export {name};<br/>//export&#x51FD;&#x6570;<br/>function hello(){<br/>&nbsp;&nbsp;&nbsp;&nbsp;console.log(&#39;hello,&#39; + name);<br/>}<br/>export {hello};<br/>&#x8FD8;&#x53EF;&#x4EE5;&#x5728;&#x6A21;&#x5757;&#x6587;&#x4EF6;&#x672B;&#x5C3E;&#x4E00;&#x8D77;export&#xFF0C;&#x66F4;&#x76F4;&#x89C2;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;let name = &#39;Jack&#39;;<br/>function hello(){<br/>&nbsp;&nbsp;&nbsp;&nbsp;console.log(&#39;hello,&#39; + name);<br/>}<br/>export {name, hello};<br/>&#x6CE8;&#x610F;&#xFF1A;export&#x547D;&#x4EE4;&#x53EF;&#x4EE5;&#x51FA;&#x73B0;&#x5728;&#x6A21;&#x5757;&#x7684;&#x4EFB;&#x4F55;&#x4F4D;&#x7F6E;&#xFF0C;&#x4F46;&#x53EA;&#x80FD;&#x5904;&#x4E8E;&#x6A21;&#x5757;&#x9876;&#x5C42;&#xFF0C;&#x5982;&#x679C;&#x5904;&#x4E8E;&#x5757;&#x7EA7;&#x4F5C;&#x7528;&#x57DF;&#x5185;&#x5C06;&#x4F1A;&#x62A5;&#x9519;&#x3002;export&#x547D;&#x4EE4;&#x540E;&#x9762;&#x53EA;&#x80FD;&#x8DDF;&#x58F0;&#x660E;&#x8BED;&#x53E5;&#xFF0C;&#34;export let name&#34;&#x548C;&#34;let name;export {name}&#34;&#x8FD9;&#x4E24;&#x79CD;&#x5199;&#x6CD5;&#x90FD;&#x53EF;&#x4EE5;&#xFF0C;&#x82E5;&#x5199;&#x6210;export name(&#x6CA1;&#x6709;&#x5927;&#x62EC;&#x53F7;)&#x4F1A;&#x62A5;&#x9519;&#x3002;<br/>import&#x547D;&#x4EE4;&#x52A0;&#x8F7D;&#x6A21;&#x5757;<br/>&#x5B9A;&#x4E49;&#x597D;&#x6A21;&#x5757;&#xFF0C;&#x6211;&#x4EEC;&#x5C31;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;import&#x547D;&#x4EE4;&#x52A0;&#x8F7D;&#x6A21;&#x5757;&#x5E76;&#x4F7F;&#x7528;&#x5176;&#x63D0;&#x4F9B;&#x7684;&#x63A5;&#x53E3;&#x4E86;&#xFF0C;&#x6CE8;&#x610F;import&#x7684;&#x53D8;&#x91CF;&#x540D;&#x5FC5;&#x987B;&#x548C;export&#x7684;&#x5BF9;&#x5916;&#x63A5;&#x53E3;&#x540D;&#x79F0;&#x4E00;&#x4E00;&#x5BF9;&#x5E94;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;script type=&#34;module&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;import {name, hello} from &#39;./mod.js&#39;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;console.log(name);<br/>&nbsp;&nbsp;&nbsp;&nbsp;hello();<br/>&lt;/script&gt;<br/>&#x4E5F;&#x53EF;&#x4EE5;&#x4E0D;&#x9010;&#x4E2A;&#x6307;&#x5B9A;&#x53D8;&#x91CF;&#x540D;&#xFF0C;&#x4F7F;&#x7528;&#x661F;&#x53F7;(*)&#x5C06;&#x6A21;&#x5757;&#x6240;&#x6709;&#x63A5;&#x53E3;&#x52A0;&#x8F7D;&#x8FDB;&#x6765;&#x8D4B;&#x503C;&#x7ED9;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;script type=&#34;module&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;import * as mod from &#39;./mod.js&#39;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;console.log(mod.name);<br/>&nbsp;&nbsp;&nbsp;&nbsp;mod.hello();<br/>&lt;/script&gt;<br/>export&#x548C;import&#x91CD;&#x547D;&#x540D;<br/>export&#x5BF9;&#x5916;&#x63A5;&#x53E3;&#x540D;&#x548C;import&#x53D8;&#x91CF;&#x540D;&#x90FD;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;as&#x8FDB;&#x884C;&#x91CD;&#x547D;&#x540D;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;let name = &#39;Jack&#39;;<br/>function hello(){<br/>&nbsp;&nbsp;&nbsp;&nbsp;console.log(&#39;hello,&#39; + name);<br/>}<br/>export {name as n, hello};<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;script type=&#34;module&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;import {n, hello as h} from &#39;./mod.js&#39;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;console.log(n);<br/>&nbsp;&nbsp;&nbsp;&nbsp;h();<br/>&lt;/script&gt;<br/>export default&#x547D;&#x4EE4;<br/>export default&#x547D;&#x4EE4;&#x7528;&#x4E8E;&#x8BBE;&#x7F6E;&#x6A21;&#x5757;&#x7684;&#x9ED8;&#x8BA4;&#x5BF9;&#x5916;&#x63A5;&#x53E3;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;let name = &#39;Jack&#39;;<br/>function hello(){<br/>&nbsp;&nbsp;&nbsp;&nbsp;console.log(&#39;hello,&#39; + name);<br/>}<br/>export default hello;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;script type=&#34;module&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;import hello from &#39;./mod.js&#39;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;hello();<br/>&lt;/script&gt;<br/>&#x6CE8;&#x610F;export default&#x540E;&#x9762;&#x7684;&#x5BF9;&#x5916;&#x63A5;&#x53E3;&#x540D;&#x79F0;&#x4E0D;&#x9700;&#x8981;&#x5927;&#x62EC;&#x53F7;&#xFF0C;import&#x540E;&#x9762;&#x7684;&#x53D8;&#x91CF;&#x540D;&#x53EF;&#x4EE5;&#x4E0D;&#x548C;&#x63A5;&#x53E3;&#x540D;&#x79F0;&#x4E00;&#x6837;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x4E0D;&#x9700;&#x8981;&#x77E5;&#x9053;&#x786E;&#x5207;&#x7684;&#x63A5;&#x53E3;&#x540D;&#x79F0;&#xFF0C;&#x7528;&#x4EFB;&#x610F;&#x53D8;&#x91CF;&#x540D;&#x90FD;&#x662F;&#x53EF;&#x4EE5;&#x7684;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;script type=&#34;module&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;import todo from &#39;./mod.js&#39;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;todo();<br/>&lt;/script&gt;<br/>Module&#x6A21;&#x5757;&#x5D4C;&#x5957;<br/>Module&#x6A21;&#x5757;&#x53EF;&#x4EE5;&#x5728;&#x4E00;&#x4E2A;&#x6A21;&#x5757;&#x4E2D;&#x5D4C;&#x5957;&#x53E6;&#x4E00;&#x4E2A;&#x6A21;&#x5757;&#xFF0C;&#x4F8B;&#x5982;&#x5728;mod2.js&#x4E2D;&#x5D4C;&#x5957;mod.js&#x6A21;&#x5757;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;import {name, hello} from &#39;./mod.js&#39;<br/>export {name, hello}<br/>&#x4E5F;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;export&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;export {name, hello} from &#39;./mod.js&#39;<br/>&#x8FD9;&#x79CD;&#x5199;&#x6CD5;&#x7701;&#x7565;&#x4E86;import&#xFF0C;mod2.js&#x4E2D;&#x4E0D;&#x80FD;&#x4F7F;&#x7528;mode.js&#x7684;&#x5BF9;&#x5916;&#x63A5;&#x53E3;&#xFF0C;&#x53EA;&#x8D77;&#x5230;&#x8F6C;&#x53D1;&#x4F5C;&#x7528;&#x3002;</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.031&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x45;&#x53;&#x36;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;&#xFF1A;&#x4D;&#x6F;&#x64;&#x75;&#x6C;&#x65;&#x6A21;&#x5757;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.031&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.031&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
