{"id":60728,"date":"2020-04-08T03:52:29","date_gmt":"2020-04-07T19:52:29","guid":{"rendered":"http:\/\/4563.org\/?p=60728"},"modified":"2020-04-08T03:52:29","modified_gmt":"2020-04-07T19:52:29","slug":"%e5%86%8d%e6%b1%82node-js%e5%a4%a7%e4%bd%ac","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=60728","title":{"rendered":"\u518d\u6c42node.js\u5927\u4f6c"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u8e74\u97a0<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 12:03:54\t<\/p>\n<h3>\u518d\u6c42node.js\u5927\u4f6c<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u8e74\u97a0 \u4e8e 2020-3-23 12:05 \u7f16\u8f91 <\/p>\n<p> github\u4e0a\u7684\u4e00\u4e2a\u9879\u76eehttps:\/\/github.com\/nhn\/tui.calendar<\/p>\n<p>  \u5728\u8fd9\u4e2a\u5730\u65b9\u6211\u4e00\u76f4\u6ca1\u529e\u6cd5\u5f15\u5165\u5230html\uff0c\u8bf7\u95ee\u5927\u4f6c\u6211\u5e94\u8be5\u600e\u4e48\u5f15\u5165\uff1f<br \/>  https:\/\/s1.ax1x.com\/2020\/03\/23\/8TwZkV.png<\/p>\n<p>  &lt;body&gt;<br \/>  &#8230;<br \/>  &lt;div id=&quot;calendar&quot; style=&quot;height: 800px;&quot;&gt;&lt;\/div&gt;<br \/>  &#8230;<br \/>  &lt;\/body&gt;<\/p>\n<p>  var Calendar = tui.Calendar;<\/p>\n<p>  var Calendar = require(&#8216;tui-calendar&#8217;); \/* CommonJS *\/<br \/>  require(&quot;tui-calendar\/dist\/tui-calendar.css&quot;);<\/p>\n<p>  \/\/ If you use the default popups, use this.<br \/>  require(&quot;tui-date-picker\/dist\/tui-date-picker.css&quot;);<br \/>  require(&quot;tui-time-picker\/dist\/tui-time-picker.css&quot;);<\/p>\n<p>  import Calendar from &#8216;tui-calendar&#8217;; \/* ES6 *\/<br \/>  import &quot;tui-calendar\/dist\/tui-calendar.css&quot;;<\/p>\n<p>  \/\/ If you use the default popups, use this.<br \/>  import &#8216;tui-date-picker\/dist\/tui-date-picker.css&#8217;;<br \/>  import &#8216;tui-time-picker\/dist\/tui-time-picker.css&#8217;;<\/p>\n<p>  var calendar = new Calendar(&#8216;#calendar&#8217;, {<br \/>  defaultView: &#8216;month&#8217;,<br \/>  taskView: true,<br \/>  template: {<br \/>  &nbsp; &nbsp; monthDayname: function(dayname) {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;return &#8216;&lt;span class=&quot;calendar-week-dayname-name&quot;&gt;&#8217; + dayname.label + &#8216;&lt;\/span&gt;&#8217;;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &#8230;<br \/>  }<br \/>  });\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u9526\u5b89<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 12:05:52\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7167\u7740\u6587\u6863\u5f15\u7528\u5c31\u884c\u554a<\/p>\n<p>  \u518d\u8bf4\u8fd9\u4e5f\u4e0d\u662fnodejs\u554a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u8e74\u97a0<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 12:07:31\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9526\u5b89 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 12:05<br \/>  \u7167\u7740\u6587\u6863\u5f15\u7528\u5c31\u884c\u554a<\/p>\n<p>  \u518d\u8bf4\u8fd9\u4e5f\u4e0d\u662fnodejs\u554a<\/p>\n<p> \u4e0d\u7528nodejs\uff1f\u4e4b\u524d\u6211\u7528npm\u76f4\u63a5\u4e0b\u8f7d\u4e86node\u91cc\u9762\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>dforel<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 12:10:26\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5047\u5982\u7528npm install \u5b89\u88c5\u7684\u8bdd,\u4ed6\u662f\u524d\u7aef\u8d44\u6e90.nodejs\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\u5c31\u662f\u8f85\u52a9\u6253\u5305\u548c\u8f85\u52a9\u5f00\u53d1\u7684\u5de5\u5177,<\/p>\n<p>  \u5982\u679c\u771f\u7684\u662f npm install <br \/>  \u5927\u6982\u5c31\u662f <br \/>  import Calendar from &#8216;tui-calendar&#8217;; \/* ES6 *\/<br \/>  import &quot;tui-calendar\/dist\/tui-calendar.css&quot;;<\/p>\n<p>  \/\/ If you use the default popups, use this.<br \/>  import &#8216;tui-date-picker\/dist\/tui-date-picker.css&#8217;;<br \/>  import &#8216;tui-time-picker\/dist\/tui-time-picker.css&#8217;<\/p>\n<p>  \u8fd9\u4e2a\u65b9\u5f0f\u5f15\u7528,.<\/p>\n<p>  \u5177\u4f53\u4e5f\u5f97\u770b\u4f60\u662f\u4ec0\u4e48\u67b6\u6784\u7684,\u672c\u8eab\u662fvue\u8fd8\u662fangular\u8fd8\u662f\u666e\u901a\u7684js.\u8fd8\u662freact\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u8e74\u97a0<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 12:14:19\t<\/p>\n<h3><\/h3>\n<p>  \t\tdforel \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 12:10<br \/>  \u5047\u5982\u7528npm install \u5b89\u88c5\u7684\u8bdd,\u4ed6\u662f\u524d\u7aef\u8d44\u6e90.nodejs\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\u5c31\u662f\u8f85\u52a9\u6253\u5305\u548c\u8f85\u52a9\u5f00\u53d1\u7684\u5de5\u5177,<\/p>\n<p> \u6211\u5c31\u7528\u4e86\u666e\u901a\u7684JS\uff0c\u4ee5\u524d\u6ca1\u7528\u8fc7node\uff0c\u4e0d\u592a\u77e5\u9053\u600e\u4e48\u7528\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u9526\u5b89<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 12:22:06\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8e74\u97a0 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 12:07<br \/>  \u4e0d\u7528nodejs\uff1f\u4e4b\u524d\u6211\u7528npm\u76f4\u63a5\u4e0b\u8f7d\u4e86node\u91cc\u9762\u3002<\/p>\n<p>  npm\u662f\u57fa\u4e8enodejs\u6ca1\u9519,<\/p>\n<p>  \u4e0d\u8fc7\u5927\u5bb6\u901a\u5e38\u6240\u8bf4\u7684nodejs\u9879\u76ee\u662f\u6307\u8fd9\u4e2a\u9879\u76ee\u7528\u5230\u4e86nodejs,\u800c\u4e0d\u662f\u56e0\u4e3a\u7528\u4e86npm\u6765\u6784\u5efa\u5c31\u53eb\u505anodejs\u9879\u76ee\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6211\u662f\u4e00\u4e2a\u5927\u6c34\u602a<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 13:00:08\t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u6211\u662f\u4e00\u4e2a\u5927\u6c34\u602a \u4e8e 2020-3-23 13:03 \u7f16\u8f91 <\/p>\n<p> README\u90fd\u4e0d\u4f1a\u770b\u5417\uff1f<br \/>  \u5bfc\u5165\uff1a<br \/>  &#8220;`<br \/>  https:\/\/github.com\/nhn\/tui.calendar#via-contents-delivery-network-cdn<br \/>  &#8220;`<br \/>  \u4f7f\u7528\uff1a<br \/>  &#8220;`<br \/>  https:\/\/github.com\/nhn\/tui.calendar#-usage<br \/>  &#8220;`<\/p>\n<p>  \u65e0\u8bba\u662f\u4f7f\u7528node.js\u7684\u4f2a\u540e\u7aef\uff0c\u8fd8\u662fwebpack\u7ba1\u7406\u7684\u524d\u7aef\u9879\u76ee\uff0c\u4f60\u90fd\u6ca1\u7528\u5230node.js\uff0c\u53bb\u7ba1\u5b83\u5e72\u4ec0\u4e48\uff0c\u78b0\u90fd\u522b\u78b0\uff08\u9700\u8981\u65f6\u53ef\u4ee5\u53bb\u4e13\u95e8\u5b66\u5b66\uff09\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wweng<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 13:03:44\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5982\u679c\u4f60\u7684\u9879\u76ee\u6ca1\u6709\u7528\u6784\u5efa\u7cfb\u7edf\uff08\u5c31\u662fnpm run build\u4e4b\u7c7b\u7684\u662f\u5565\u4f60\u4e0d\u77e5\u9053\uff09<br \/>  https:\/\/github.com\/nhn\/tui.calendar#via-contents-delivery-network-cdn<br \/>  \u5c31\u7528\u8fd9\u4e2a\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u8e74\u97a0<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 13:07:59\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u662f\u4e00\u4e2a\u5927\u6c34\u602a \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 13:00<br \/>  README\u90fd\u4e0d\u4f1a\u770b\u5417\uff1f<br \/>  \u5bfc\u5165\uff1a<br \/>  &#8220;`<\/p>\n<p> \u5c31\u662f\u5728\u4f7f\u7528\u8fd9\u91cc\uff0c\u8fd9\u4e2aJS\uff0c\u6211\u4e00\u76f4\u662f\u7528node\u6765\u542f\u52a8\uff0c\u4f46\u662f\u5c31\u662f\u6709\u9519\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u8e74\u97a0<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 13:12:25\t<\/p>\n<h3><\/h3>\n<p>  \t\twweng \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-23 13:03<br \/>  \u5982\u679c\u4f60\u7684\u9879\u76ee\u6ca1\u6709\u7528\u6784\u5efa\u7cfb\u7edf\uff08\u5c31\u662fnpm run build\u4e4b\u7c7b\u7684\u662f\u5565\u4f60\u4e0d\u77e5\u9053\uff09<br \/>  https:\/\/github.com\/nhn\/tui.calenda &#8230;<\/p>\n<p> \u597d\u7684\uff0c\u8c22\u8c22\u5927\u4f6c\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8e74\u97a0 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/60728"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60728"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/60728\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60728"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}