{"id":29374,"date":"2024-11-25T16:49:56","date_gmt":"2024-11-25T08:49:56","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29374\/"},"modified":"2024-11-25T16:49:56","modified_gmt":"2024-11-25T08:49:56","slug":"es6%e6%96%b0%e7%89%b9%e6%80%a7%e5%bc%80%e5%8f%91%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%ef%bc%885%ef%bc%89","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29374\/","title":{"rendered":"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09"},"content":{"rendered":"<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">ES6\u5bf9Object\u3001Array\u3001String\u3001Number\u3001Math\u7b49\u539f\u751f\u5bf9\u8c61\u6dfb\u52a0\u4e86\u8bb8\u591a\u65b0\u7684API\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><strong><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Object\u5bf9\u8c61<\/span><\/strong><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Object.prototype.proto\uff1a\u5bf9\u8c61\u5177\u6709\u5c5e\u6027proto\uff0c\u53ef\u79f0\u4e3a\u9690\u5f0f\u539f\u578b\uff0c\u4e00\u4e2a\u5bf9\u8c61\u7684\u9690\u5f0f\u539f\u578b\u6307\u5411\u6784\u9020\u8be5\u5bf9\u8c61\u7684\u6784\u9020\u51fd\u6570\u7684\u539f\u578b\uff0c\u8fd9\u4e5f\u4fdd\u8bc1\u4e86\u5b9e\u4f8b\u80fd\u591f\u8bbf\u95ee\u5728\u6784\u9020\u51fd\u6570\u539f\u578b\u4e2d\u5b9a\u4e49\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Object.assign(target, \u2026sources)\uff1a\u53ef\u4ee5\u628a\u4efb\u610f\u591a\u4e2a\u7684\u6e90\u5bf9\u8c61\u81ea\u8eab\u7684\u53ef\u679a\u4e3e\u5c5e\u6027\u62f7\u8d1d\u7ed9\u76ee\u6807\u5bf9\u8c61\uff0c\u7136\u540e\u8fd4\u56de\u76ee\u6807\u5bf9\u8c61\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Object.is(value1, value2)\u7528\u6765\u5224\u65ad\u4e24\u4e2a\u503c\u662f\u5426\u662f\u540c\u4e00\u4e2a\u503c\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Object.setPrototypeOf(obj, prototype)\u5c06\u4e00\u4e2a\u6307\u5b9a\u7684\u5bf9\u8c61\u7684\u539f\u578b\u8bbe\u7f6e\u4e3a\u53e6\u4e00\u4e2a\u5bf9\u8c61\u6216\u8005null(\u65e2\u5bf9\u8c61\u7684[[Prototype]]\u5185\u90e8\u5c5e\u6027)\u3002<\/span><\/p>\n<p style=\"line-height:1.5em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/2a931f1db8a06114cd32a0a58dd7c8fa-0.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u63d2\u56fe\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u63d2\u56fe\" \/><\/p>\n<p style=\"line-height:1.5em\"><strong><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array\u5bf9\u8c61<\/span><\/strong><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.from(arrayLike[, mapFn[, thisArg]])\uff1a\u53ef\u4ee5\u5c06\u4e00\u4e2a\u7c7b\u6570\u7ec4\u5bf9\u8c61\u6216\u53ef\u904d\u5386\u5bf9\u8c61\u8f6c\u6362\u6210\u771f\u6b63\u7684\u6570\u7ec4\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.of(element0[, element1[, \u2026[, elementN]]])\uff1a\u5c06\u5b83\u7684\u4efb\u610f\u7c7b\u578b\u7684\u591a\u4e2a\u53c2\u6570\u653e\u5728\u4e00\u4e2a\u6570\u7ec4\u91cc\u5e76\u8fd4\u56de\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.prototype.copyWidthin(target[, start[, end]])\uff1a\u6d45\u62f7\u8d1d\u6570\u7ec4\u7684\u90e8\u5206\u5143\u7d20\u5230\u540c\u4e00\u6570\u7ec4\u7684\u4e0d\u540c\u4f4d\u7f6e\uff0c\u4e14\u4e0d\u6539\u53d8\u6570\u7ec4\u7684\u5927\u5c0f\uff0c\u8fd4\u56de\u8be5\u6570\u7ec4\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.prototype.entries()\uff1a\u8fd4\u56de\u4e00\u4e2a Array Iterator \u5bf9\u8c61\uff0c\u8be5\u5bf9\u8c61\u5305\u542b\u6570\u7ec4\u4e2d\u6bcf\u4e00\u4e2a\u7d22\u5f15\u7684\u952e\u503c\u5bf9\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.prototype.fill(value[, start = 0[, end = this.length]])\uff1a\u53ef\u4ee5\u5c06\u4e00\u4e2a\u6570\u7ec4\u4e2d\u6307\u5b9a\u533a\u95f4\u7684\u6240\u6709\u5143\u7d20\u7684\u503c, \u90fd\u66ff\u6362\u6210\u6216\u8005\u8bf4\u586b\u5145\u6210\u4e3a\u67d0\u4e2a\u56fa\u5b9a\u7684\u503c\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.prototype.find(callback[, thisArg])\uff1a\u5982\u679c\u6570\u7ec4\u4e2d\u67d0\u4e2a\u5143\u7d20\u6ee1\u8db3\u6d4b\u8bd5\u6761\u4ef6\uff0cfind() \u65b9\u6cd5\u5c31\u4f1a\u8fd4\u56de\u90a3\u4e2a\u5143\u7d20\u7684\u7b2c\u4e00\u4e2a\u503c\uff0c\u5982\u679c\u6ca1\u6709\u6ee1\u8db3\u6761\u4ef6\u7684\u5143\u7d20\uff0c\u5219\u8fd4\u56de undefined\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.prototype.findIndex(callback[, thisArg])\uff1a\u7528\u6765\u67e5\u627e\u6570\u7ec4\u4e2d\u67d0\u6307\u5b9a\u5143\u7d20\u7684\u7d22\u5f15, \u5982\u679c\u627e\u4e0d\u5230\u6307\u5b9a\u7684\u5143\u7d20, \u5219\u8fd4\u56de -1\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.prototype.keys()\uff1a\u8fd4\u56de\u4e00\u4e2a\u6570\u7ec4\u7d22\u5f15\u7684\u8fed\u4ee3\u5668\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.prototype.values()\uff1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684 Array Iterator \u5bf9\u8c61\uff0c\u8be5\u5bf9\u8c61\u5305\u542b\u6570\u7ec4\u6bcf\u4e2a\u7d22\u5f15\u7684\u503c\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.prototype\uff1a\u6570\u7ec4\u7684 iterator \u65b9\u6cd5\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e0e values() \u8fd4\u56de\u503c\u76f8\u540c\u3002<\/span><\/p>\n<p style=\"line-height:1.5em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/2a931f1db8a06114cd32a0a58dd7c8fa-1.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u63d2\u56fe1\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u63d2\u56fe1\" \/><\/p>\n<p style=\"line-height:1.5em\"><strong><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">String\u5bf9\u8c61<\/span><\/strong><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">String.fromCodePoint(num1[, \u2026[, numN]])\uff1a\u8fd4\u56de\u4f7f\u7528\u6307\u5b9a\u7684\u4ee3\u7801\u70b9\u5e8f\u5217\u521b\u5efa\u7684\u5b57\u7b26\u4e32\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">String.raw(callSite, \u2026substitutions)\uff1a\u662f\u4e00\u4e2a\u6a21\u677f\u5b57\u7b26\u4e32\u7684\u6807\u7b7e\u51fd\u6570\uff0c\u5b83\u7684\u4f5c\u7528\u7c7b\u4f3c\u4e8e Python \u4e2d\u7684\u5b57\u7b26\u4e32\u524d\u7f00 r \u548c C# \u4e2d\u7684\u5b57\u7b26\u4e32\u524d\u7f00 @\uff0c\u662f\u7528\u6765\u83b7\u53d6\u4e00\u4e2a\u6a21\u677f\u5b57\u7b26\u4e32\u7684\u539f\u59cb\u5b57\u9762\u91cf\u503c\u7684\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">String.prototype.codePointAt(pos)\uff1a\u8fd4\u56de \u4e00\u4e2a Unicode \u7f16\u7801\u70b9\u503c\u7684\u975e\u8d1f\u6574\u6570\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">String.prototype.endsWith(searchString [, position])\uff1a\u7528\u6765\u5224\u65ad\u5f53\u524d\u5b57\u7b26\u4e32\u662f\u5426\u662f\u4ee5\u53e6\u5916\u4e00\u4e2a\u7ed9\u5b9a\u7684\u5b50\u5b57\u7b26\u4e32\u201c\u7ed3\u5c3e\u201d\u7684\uff0c\u6839\u636e\u5224\u65ad\u7ed3\u679c\u8fd4\u56de true \u6216 false\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">String.prototype.includes(searchString[, position])\uff1a\u7528\u4e8e\u5224\u65ad\u4e00\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u88ab\u5305\u542b\u5728\u53e6\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\uff0c\u5982\u679c\u5305\u542b\uff0c\u5c31\u8fd4\u56detrue;\u5426\u5219\uff0c\u8fd4\u56defalse\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">String.prototype.repeat(count)\uff1a\u6784\u9020\u5e76\u8fd4\u56de\u4e00\u4e2a\u91cd\u590d\u5f53\u524d\u5b57\u7b26\u4e32\u82e5\u5e72\u6b21\u6570\u7684\u65b0\u5b57\u7b26\u4e32\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">String.prototype.startsWith(searchString [, position])\uff1a\u7528\u6765\u5224\u65ad\u5f53\u524d\u5b57\u7b26\u4e32\u662f\u5426\u662f\u4ee5\u53e6\u5916\u4e00\u4e2a\u7ed9\u5b9a\u7684\u5b50\u5b57\u7b26\u4e32\u201c\u5f00\u5934\u201d\u7684\uff0c\u6839\u636e\u5224\u65ad\u7ed3\u679c\u8fd4\u56de true \u6216 false\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">String.prototype\uff1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684Iterator\u5bf9\u8c61\uff0c\u5b83\u904d\u5386\u5b57\u7b26\u4e32\u7684\u4ee3\u7801\u70b9\uff0c\u8fd4\u56de\u6bcf\u4e00\u4e2a\u4ee3\u7801\u70b9\u7684\u5b57\u7b26\u4e32\u503c\u3002<\/span><\/p>\n<p style=\"line-height:1.5em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/2a931f1db8a06114cd32a0a58dd7c8fa-2.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u63d2\u56fe2\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u63d2\u56fe2\" \/><\/p>\n<p style=\"line-height:1.5em\"><strong><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Number\u5bf9\u8c61<\/span><\/strong><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Number.EPSILON\uff1a\u8868\u793a 1 \u548c\u5927\u4e8e 1 \u7684\u6700\u5c0f\u503c(\u53ef\u8868\u793a\u4e3a Number)\u7684\u5dee\u503c\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Number.isFinite(value)\uff1a\u7528\u6765\u68c0\u6d4b\u4f20\u5165\u7684\u53c2\u6570\u662f\u5426\u662f\u4e00\u4e2a\u6709\u7a77\u6570(finite number)\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Number.isInteger(value)\uff1a\u7528\u6765\u5224\u65ad\u7ed9\u5b9a\u7684\u53c2\u6570\u662f\u5426\u4e3a\u6574\u6570\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Number.isNaN(value)\uff1a\u7528\u6765\u68c0\u6d4b\u4f20\u5165\u7684\u503c\u662f\u5426\u662f NaN\u3002\u8be5\u65b9\u6cd5\u6bd4\u4f20\u7edf\u7684\u5168\u5c40\u51fd\u6570 isNaN() \u66f4\u53ef\u9760\u3002<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Number.isSafeInteger(testValue)\uff1a\u7528\u6765\u5224\u65ad\u4f20\u5165\u7684\u53c2\u6570\u503c\u662f\u5426\u662f\u4e00\u4e2a\u201c\u5b89\u5168\u6574\u6570\u201d(safe integer)\u3002<\/span><\/p>\n<p style=\"line-height:1.5em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/2a931f1db8a06114cd32a0a58dd7c8fa-3.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u63d2\u56fe3\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u63d2\u56fe3\" \/><\/p>\n<p style=\"line-height:1.5em\"><strong><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Math\u5bf9\u8c61<\/span><\/strong><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Math.acosh(x)\uff1a\u8fd4\u56de\u4e00\u4e2a\u6570\u5b57\u7684\u53cd\u53cc\u66f2\u4f59\u5f26\u503c<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Math.asinh(x)\uff1a\u8fd4\u56de\u7ed9\u5b9a\u6570\u5b57\u7684\u53cd\u53cc\u66f2\u6b63\u5f26\u503c<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Math.atanh(x)\uff1a\u8fd4\u56de\u4e00\u4e2a\u6570\u503c\u53cd\u53cc\u66f2\u6b63\u5207\u503c<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Math.cbrt(x)\uff1a\u8fd4\u56de\u4efb\u610f\u6570\u5b57\u7684\u7acb\u65b9\u6839<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Math.cosh(x)\uff1a\u8fd4\u56de\u6570\u503c\u7684\u53cc\u66f2\u4f59\u5f26\u51fd\u6570<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Math.sign(x)\uff1a\u7528\u6765\u5224\u65ad\u4e00\u4e2a\u6570\u5b57\u7684\u7b26\u53f7, \u662f\u6b63\u6570, \u8d1f\u6570, \u8fd8\u662f\u96f6<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Math.sinh(x)\uff1a\u8fd4\u56de\u4e00\u4e2a\u6570\u5b57(\u5355\u4f4d\u4e3a\u89d2\u5ea6)\u7684\u53cc\u66f2\u6b63\u5f26\u503c<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Math.tanh(x)\uff1a\u8fd4\u56de\u4e00\u4e2a\u6570\u7684\u53cc\u66f2\u6b63\u5207\u51fd\u6570\u503c<\/span><\/p>\n<p style=\"line-height:2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Math.trunc(value)\uff1a\u5c06\u6570\u5b57\u7684\u5c0f\u6570\u90e8\u5206\u53bb\u6389\uff0c\u53ea\u7559\u6574\u6570\u90e8\u5206<\/span><\/p>\n<p style=\"line-height:1.5em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/010\/e90183c7b896eb1c78f318737ea77734-4.jpg\" class=\"aligncenter\" title=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u63d2\u56fe4\" alt=\"ES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u63d2\u56fe4\" \/><\/p>\n<p style=\"line-height:1.5em\"><strong><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u76ee\u524d\u4e0d\u652f\u6301\u7684API<\/span><\/strong><\/p>\n<p style=\"line-height: 2em\"><span style=\"font-family:\u5fae\u8f6f\u96c5\u9ed1,\">Array.prototype.values()<\/span><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fES6\u65b0\u7279\u6027\u5f00\u53d1\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\uff085\uff09\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ES6\u5bf9Object\u3001Array\u3001String\u3001Number\u3001Math\u7b49\u539f\u751f\u5bf9\u8c61\u6dfb\u52a0\u4e86\u8bb8\u591a\u65b0\u7684API\u3002 Object\u5bf9\u8c61 Object.prototype.proto\uff1a\u5bf9\u8c61\u5177\u6709\u5c5e\u6027proto\uff0c\u53ef\u79f0\u4e3a\u9690\u5f0f\u539f\u578b\uff0c\u4e00\u4e2a\u5bf9\u8c61\u7684\u9690\u5f0f\u539f\u578b\u6307\u5411\u6784\u9020\u8be5\u5bf9\u8c61\u7684\u6784\u9020\u51fd\u6570\u7684\u539f\u578b\uff0c\u8fd9\u4e5f\u4fdd\u8bc1\u4e86\u5b9e\u4f8b\u80fd\u591f\u8bbf\u95ee\u5728\u6784\u9020\u51fd\u6570\u539f\u578b\u4e2d\u5b9a\u4e49\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u3002 Object.assign(target, \u2026sources)\uff1a\u53ef\u4ee5\u628a\u4efb\u610f\u591a\u4e2a\u7684\u6e90\u5bf9\u8c61\u81ea\u8eab\u7684\u53ef\u679a\u4e3e\u5c5e\u6027\u62f7\u8d1d\u7ed9\u76ee\u6807\u5bf9\u8c61\uff0c\u7136\u540e\u8fd4\u56de\u76ee\u6807\u5bf9\u8c61\u3002 Object.is(value1, value2)\u7528\u6765\u5224\u65ad\u4e24\u4e2a\u503c\u662f\u5426\u662f\u540c\u4e00\u4e2a\u503c\u3002 Object.setPrototypeOf(obj, prototype)\u5c06\u4e00\u4e2a\u6307\u5b9a\u7684\u5bf9\u8c61\u7684\u539f\u578b\u8bbe\u7f6e\u4e3a\u53e6\u4e00\u4e2a\u5bf9\u8c61\u6216\u8005null(\u65e2\u5bf9\u8c61\u7684[[Prototype]]\u5185\u90e8\u5c5e\u6027)\u3002 Array\u5bf9\u8c61 Array.from(arrayLike[, mapFn[, thisArg]])\uff1a\u53ef\u4ee5\u5c06\u4e00\u4e2a\u7c7b\u6570\u7ec4\u5bf9\u8c61\u6216\u53ef\u904d\u5386\u5bf9\u8c61\u8f6c\u6362\u6210\u771f\u6b63\u7684\u6570\u7ec4\u3002 Array.of(element0[, element1[, \u2026[, elementN]]])\uff1a\u5c06\u5b83\u7684\u4efb\u610f\u7c7b\u578b\u7684\u591a\u4e2a\u53c2\u6570\u653e\u5728\u4e00\u4e2a\u6570\u7ec4\u91cc\u5e76\u8fd4\u56de\u3002 Array.prototype.copyWidthin(target[, start[, end]])\uff1a\u6d45\u62f7\u8d1d\u6570\u7ec4\u7684\u90e8\u5206\u5143\u7d20\u5230\u540c\u4e00\u6570\u7ec4\u7684\u4e0d\u540c\u4f4d\u7f6e\uff0c\u4e14\u4e0d\u6539\u53d8\u6570\u7ec4\u7684\u5927\u5c0f\uff0c\u8fd4\u56de\u8be5\u6570\u7ec4\u3002 Array.prototype.entries()\uff1a\u8fd4\u56de\u4e00\u4e2a Array Iterator \u5bf9\u8c61\uff0c\u8be5\u5bf9\u8c61\u5305\u542b\u6570\u7ec4\u4e2d\u6bcf\u4e00\u4e2a\u7d22\u5f15\u7684\u952e\u503c\u5bf9\u3002 Array.prototype.fill(value[, start = 0[, end = this.length]])\uff1a\u53ef\u4ee5\u5c06\u4e00\u4e2a\u6570\u7ec4\u4e2d\u6307\u5b9a\u533a\u95f4\u7684\u6240\u6709\u5143\u7d20\u7684\u503c, \u90fd\u66ff\u6362\u6210\u6216\u8005\u8bf4\u586b\u5145\u6210\u4e3a\u67d0\u4e2a\u56fa\u5b9a\u7684\u503c\u3002 Array.prototype.find(callback[, thisArg])\uff1a\u5982\u679c\u6570\u7ec4\u4e2d\u67d0\u4e2a\u5143\u7d20\u6ee1\u8db3\u6d4b\u8bd5\u6761\u4ef6\uff0cfind() \u65b9\u6cd5\u5c31\u4f1a\u8fd4\u56de\u90a3\u4e2a\u5143\u7d20\u7684\u7b2c\u4e00\u4e2a\u503c\uff0c\u5982\u679c\u6ca1\u6709\u6ee1\u8db3\u6761\u4ef6\u7684\u5143\u7d20\uff0c\u5219\u8fd4\u56de undefined\u3002 Array.prototype.findIndex(callback[, thisArg])\uff1a\u7528\u6765\u67e5\u627e\u6570\u7ec4\u4e2d\u67d0\u6307\u5b9a\u5143\u7d20\u7684\u7d22\u5f15, \u5982\u679c\u627e\u4e0d\u5230\u6307\u5b9a\u7684\u5143\u7d20, \u5219\u8fd4\u56de -1\u3002 Array.prototype.keys()\uff1a\u8fd4\u56de\u4e00\u4e2a\u6570\u7ec4\u7d22\u5f15\u7684\u8fed\u4ee3\u5668\u3002 Array.prototype.values()\uff1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684 Array Iterator \u5bf9\u8c61\uff0c\u8be5\u5bf9\u8c61\u5305\u542b\u6570\u7ec4\u6bcf\u4e2a\u7d22\u5f15\u7684\u503c\u3002 Array.prototype\uff1a\u6570\u7ec4\u7684 iterator \u65b9\u6cd5\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e0e values() \u8fd4\u56de\u503c\u76f8\u540c\u3002 String\u5bf9\u8c61 String.fromCodePoint(num1[, \u2026[, numN]])\uff1a\u8fd4\u56de\u4f7f\u7528\u6307\u5b9a\u7684\u4ee3\u7801\u70b9\u5e8f\u5217\u521b\u5efa\u7684\u5b57\u7b26\u4e32\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-29374","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=29374"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29374\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}