{"id":45,"date":"2024-07-30T15:11:08","date_gmt":"2024-07-30T07:11:08","guid":{"rendered":"https:\/\/a.li6.cc\/?p=45"},"modified":"2024-07-30T15:11:08","modified_gmt":"2024-07-30T07:11:08","slug":"js%e9%9a%8f%e6%9c%ba%e5%8f%96%e6%95%b0%e7%bb%84%e9%87%8c%e7%9a%84%e4%b8%80%e4%b8%aa%e5%85%83%e7%b4%a0","status":"publish","type":"post","link":"https:\/\/a.li6.cc\/index.php\/2024\/07\/30\/js%e9%9a%8f%e6%9c%ba%e5%8f%96%e6%95%b0%e7%bb%84%e9%87%8c%e7%9a%84%e4%b8%80%e4%b8%aa%e5%85%83%e7%b4%a0\/","title":{"rendered":"js\u968f\u673a\u53d6\u6570\u7ec4\u91cc\u7684\u4e00\u4e2a\u5143\u7d20"},"content":{"rendered":"<p>JavaScript - \u968f\u673a\u83b7\u53d6\u6570\u7ec4\u5143\u7d20<\/p>\n<pre><code>var myArray = [&#039;one&#039;, &#039;two&#039;, &#039;three&#039;, &#039;four&#039;, &#039;five&#039;];\nvar rand = Math.floor(Math.random() * myArray.length);\nvar rValue = myArray[rand];\nconsole.log(rValue)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript &#8211; \u968f\u673a\u83b7\u53d6\u6570\u7ec4\u5143\u7d20 var myArray = [&#038;#0 &hellip; <a href=\"https:\/\/a.li6.cc\/index.php\/2024\/07\/30\/js%e9%9a%8f%e6%9c%ba%e5%8f%96%e6%95%b0%e7%bb%84%e9%87%8c%e7%9a%84%e4%b8%80%e4%b8%aa%e5%85%83%e7%b4%a0\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/45"}],"collection":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":1,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":46,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/45\/revisions\/46"}],"wp:attachment":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}