{"id":303,"date":"2023-09-28T11:24:14","date_gmt":"2023-09-28T03:24:14","guid":{"rendered":"https:\/\/www.qzdd.net\/?p=303"},"modified":"2023-09-28T11:24:14","modified_gmt":"2023-09-28T03:24:14","slug":"js%e8%bf%90%e7%ae%97%e7%ac%a6%e4%bc%98%e5%85%88%e7%ba%a7","status":"publish","type":"post","link":"https:\/\/www.qzdd.net\/?p=303","title":{"rendered":"JS\u8fd0\u7b97\u7b26\u4f18\u5148\u7ea7"},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><th>\u4f18\u5148\u7ea7<\/th><th>\u8fd0\u7b97\u7b26\u7c7b\u578b<\/th><th>\u7ed3\u5408\u6027<\/th><th>\u8fd0\u7b97\u7b26<\/th><\/tr><tr><td>19<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Grouping\">\u5206\u7ec4<\/a><\/td><td>n\/a\uff08\u4e0d\u76f8\u5173\uff09<\/td><td><code>( \u2026 )<\/code><\/td><\/tr><tr><td rowspan=\"5\">18<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Property_accessors#%E7%82%B9%E5%8F%B7%E8%A1%A8%E7%A4%BA%E6%B3%95\">\u6210\u5458\u8bbf\u95ee<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 . \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Property_accessors#%E6%96%B9%E6%8B%AC%E5%8F%B7%E8%A1%A8%E7%A4%BA%E6%B3%95\">\u9700\u8ba1\u7b97\u7684\u6210\u5458\u8bbf\u95ee<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 [ \u2026 ]<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/new\"><code>new<\/code><\/a>\uff08\u5e26\u53c2\u6570\u5217\u8868\uff09<\/td><td>n\/a<\/td><td><code>new \u2026 ( \u2026 )<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Guide\/Functions\">\u51fd\u6570\u8c03\u7528<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 (&nbsp;<var>\u2026&nbsp;<\/var>)<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Optional_chaining\">\u53ef\u9009\u94fe\uff08Optional chaining\uff09<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>?.<\/code><\/td><\/tr><tr><td>17<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/new\"><code>new<\/code><\/a>\uff08\u65e0\u53c2\u6570\u5217\u8868\uff09<\/td><td>\u4ece\u53f3\u5230\u5de6<\/td><td><code>new \u2026<\/code><\/td><\/tr><tr><td rowspan=\"2\">16<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators#%E8%87%AA%E5%A2%9E%E5%92%8C%E8%87%AA%E5%87%8F\">\u540e\u7f6e\u9012\u589e<\/a><\/td><td rowspan=\"2\">n\/a<\/td><td><code>\u2026 ++<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators#%E8%87%AA%E5%A2%9E%E5%92%8C%E8%87%AA%E5%87%8F\">\u540e\u7f6e\u9012\u51cf<\/a><\/td><td><code>\u2026 --<\/code><\/td><\/tr><tr><td rowspan=\"10\">15<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Logical_NOT\">\u903b\u8f91\u975e (!)<\/a><\/td><td rowspan=\"10\">\u4ece\u53f3\u5230\u5de6<\/td><td><code>! \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Bitwise_NOT\">\u6309\u4f4d\u975e (~)<\/a><\/td><td><code>~ \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Unary_plus\">\u4e00\u5143\u52a0\u6cd5 (+)<\/a><\/td><td><code>+ \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Unary_negation\">\u4e00\u5143\u51cf\u6cd5 (-)<\/a><\/td><td><code>- \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators#%E8%87%AA%E5%A2%9E%E5%92%8C%E8%87%AA%E5%87%8F\">\u524d\u7f6e\u9012\u589e<\/a><\/td><td><code>++ \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators#%E8%87%AA%E5%A2%9E%E5%92%8C%E8%87%AA%E5%87%8F\">\u524d\u7f6e\u9012\u51cf<\/a><\/td><td><code>-- \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/typeof\"><code>typeof<\/code><\/a><\/td><td><code>typeof \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/void\"><code>void<\/code><\/a><\/td><td><code>void \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/delete\"><code>delete<\/code><\/a><\/td><td><code>delete \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/await\"><code>await<\/code><\/a><\/td><td><code>await \u2026<\/code><\/td><\/tr><tr><td>14<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Exponentiation\">\u5e42 (**)<\/a><\/td><td>\u4ece\u53f3\u5230\u5de6<\/td><td><code>\u2026 ** \u2026<\/code><\/td><\/tr><tr><td rowspan=\"3\">13<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Multiplication\">\u4e58\u6cd5 (*)<\/a><\/td><td rowspan=\"3\">\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 * \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Division\">\u9664\u6cd5 (\/)<\/a><\/td><td><code>\u2026 \/ \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Remainder\">\u53d6\u4f59 (%)<\/a><\/td><td><code>\u2026 % \u2026<\/code><\/td><\/tr><tr><td rowspan=\"2\">12<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Addition\">\u52a0\u6cd5 (+)<\/a><\/td><td rowspan=\"2\">\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 + \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Subtraction\">\u51cf\u6cd5 (-)<\/a><\/td><td><code>\u2026 - \u2026<\/code><\/td><\/tr><tr><td rowspan=\"3\">11<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Left_shift\">\u6309\u4f4d\u5de6\u79fb (&lt;&lt;)<\/a><\/td><td rowspan=\"3\">\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 &lt;&lt; \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Right_shift\">\u6309\u4f4d\u53f3\u79fb (&gt;&gt;)<\/a><\/td><td><code>\u2026 &gt;&gt; \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Unsigned_right_shift\">\u65e0\u7b26\u53f7\u53f3\u79fb (&gt;&gt;&gt;)<\/a><\/td><td><code>\u2026 &gt;&gt;&gt; \u2026<\/code><\/td><\/tr><tr><td rowspan=\"6\">10<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Less_than\">\u5c0f\u4e8e (&lt;)<\/a><\/td><td rowspan=\"6\">\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 &lt; \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Less_than_or_equal\">\u5c0f\u4e8e\u7b49\u4e8e (&lt;=)<\/a><\/td><td><code>\u2026 &lt;= \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Greater_than\">\u5927\u4e8e (&gt;)<\/a><\/td><td><code>\u2026 &gt; \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Greater_than_or_equal\">\u5927\u4e8e\u7b49\u4e8e (&gt;=)<\/a><\/td><td><code>\u2026 &gt;= \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/in\"><code>in<\/code><\/a><\/td><td><code>\u2026 in \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/instanceof\"><code>instanceof<\/code><\/a><\/td><td><code>\u2026 instanceof \u2026<\/code><\/td><\/tr><tr><td rowspan=\"4\">9<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Equality\">\u76f8\u7b49 (==)<\/a><\/td><td rowspan=\"4\">\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 == \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Inequality\">\u4e0d\u76f8\u7b49 (!=)<\/a><\/td><td><code>\u2026 != \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Strict_equality\">\u4e00\u81f4\/\u4e25\u683c\u76f8\u7b49 (===)<\/a><\/td><td><code>\u2026 === \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Strict_inequality\">\u4e0d\u4e00\u81f4\/\u4e25\u683c\u4e0d\u76f8\u7b49 (!==)<\/a><\/td><td><code>\u2026 !== \u2026<\/code><\/td><\/tr><tr><td>8<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Bitwise_AND\">\u6309\u4f4d\u4e0e (&amp;)<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 &amp; \u2026<\/code><\/td><\/tr><tr><td>7<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Bitwise_XOR\">\u6309\u4f4d\u5f02\u6216 (^)<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 ^ \u2026<\/code><\/td><\/tr><tr><td>6<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Bitwise_OR\">\u6309\u4f4d\u6216 (|)<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 | \u2026<\/code><\/td><\/tr><tr><td>5<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Logical_AND\">\u903b\u8f91\u4e0e (&amp;&amp;)<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 &amp;&amp; \u2026<\/code><\/td><\/tr><tr><td rowspan=\"2\">4<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Logical_OR\">\u903b\u8f91\u6216 (||)<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 || \u2026<\/code><\/td><\/tr><tr><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Nullish_coalescing\">\u7a7a\u503c\u5408\u5e76 (??)<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 ?? \u2026<\/code><\/td><\/tr><tr><td>3<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Conditional_operator\">\u6761\u4ef6\uff08\u4e09\u5143\uff09\u8fd0\u7b97\u7b26<\/a><\/td><td>\u4ece\u53f3\u5230\u5de6<\/td><td><code>\u2026 ? \u2026 : \u2026<\/code><\/td><\/tr><tr><td rowspan=\"16\">2<\/td><td rowspan=\"16\"><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators#%E8%B5%8B%E5%80%BC%E8%BF%90%E7%AE%97%E7%AC%A6\">\u8d4b\u503c<\/a><\/td><td rowspan=\"16\">\u4ece\u53f3\u5230\u5de6<\/td><td><code>\u2026 = \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 += \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 -= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 **= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 *= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 \/= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 %= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 &lt;&lt;= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 &gt;&gt;= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 &gt;&gt;&gt;= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 &amp;= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 ^= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 |= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 &amp;&amp;= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 ||= \u2026<\/code><\/td><\/tr><tr><td><code>\u2026 ??= \u2026<\/code><\/td><\/tr><tr><td>1<\/td><td><a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/JavaScript\/Reference\/Operators\/Comma_operator\">\u9017\u53f7 \/ \u5e8f\u5217<\/a><\/td><td>\u4ece\u5de6\u5230\u53f3<\/td><td><code>\u2026 , \u2026<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>!(p &amp;&amp; q) === !p || !q<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>!(p || q) === !p &amp;&amp; !q<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4f18\u5148\u7ea7 \u8fd0\u7b97\u7b26\u7c7b\u578b \u7ed3\u5408\u6027 \u8fd0\u7b97\u7b26 19 \u5206\u7ec4 n\/a\uff08\u4e0d\u76f8\u5173\uff09 ( \u2026 ) 18 \u6210\u5458\u8bbf\u95ee \u4ece\u5de6\u5230\u53f3 \u2026 . [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[67,92],"class_list":["post-303","post","type-post","status-publish","format-standard","hentry","category-base","tag-67","tag-92"],"_links":{"self":[{"href":"https:\/\/www.qzdd.net\/index.php?rest_route=\/wp\/v2\/posts\/303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qzdd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qzdd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qzdd.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qzdd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=303"}],"version-history":[{"count":0,"href":"https:\/\/www.qzdd.net\/index.php?rest_route=\/wp\/v2\/posts\/303\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qzdd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qzdd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qzdd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}