René's URL Explorer Experiment


Title: 《Rest 参数与 Spread 语法》中可能存在的问题 · javascript-tutorial/zh.javascript.info · Discussion #972 · GitHub

Open Graph Title: 《Rest 参数与 Spread 语法》中可能存在的问题 · javascript-tutorial/zh.javascript.info · Discussion #972

X Title: 《Rest 参数与 Spread 语法》中可能存在的问题 · javascript-tutorial/zh.javascript.info · Discussion #972

Description: 《Rest 参数与 Spread 语法》中可能存在的问题

Open Graph Description: 在《Rest 参数与 Spread 语法》章节中介绍说明 在该叙述下面的例子中用到 Spread 语法复制对象 在前面的章节《Iterable **object(可迭代对象)》中介绍了普通对象不是迭代对象 所以对红框中的描述有点疑惑,找了MDN。 大佬们,这个地方是否存在歧义😂

X Description: 在《Rest 参数与 Spread 语法》章节中介绍说明 在该叙述下面的例子中用到 Spread 语法复制对象 在前面的章节《Iterable **object(可迭代对象)》中介绍了普通对象不是迭代对象 所以对红框中的描述有点疑惑,找了MDN。 大佬们,这个地方是否存在歧义😂

Opengraph URL: https://github.com/javascript-tutorial/zh.javascript.info/discussions/972

X: @github

direct link

Domain: redirect.github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"《Rest 参数与 Spread 语法》中可能存在的问题","text":"\u003cp dir=\"auto\"\u003e在《Rest 参数与 Spread 语法》章节中介绍说明\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://user-images.githubusercontent.com/41250661/142994424-a3b91856-2cfc-4f69-ae45-9b568600637e.png\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/41250661/142994424-a3b91856-2cfc-4f69-ae45-9b568600637e.png\" alt=\"Issues1\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e在该叙述下面的例子中用到 Spread 语法复制对象\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://user-images.githubusercontent.com/41250661/142994425-fa0ad6c0-6d4e-44df-89ef-9709cc045867.png\"\u003e\u003cimg width=\"725\" alt=\"Issues2\" src=\"https://user-images.githubusercontent.com/41250661/142994425-fa0ad6c0-6d4e-44df-89ef-9709cc045867.png\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e在前面的章节《Iterable **object(可迭代对象)》中介绍了\u003cem\u003e普通对象不是迭代对象\u003c/em\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e所以对红框中的描述有点疑惑,找了MDN。\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://user-images.githubusercontent.com/41250661/142994844-171b463e-7d1a-4177-a245-a9c16b29403f.png\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/41250661/142994844-171b463e-7d1a-4177-a245-a9c16b29403f.png\" alt=\"Issues3\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e大佬们,这个地方是否存在歧义😂\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003e这两种说法是不冲突的。\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e第一种情况是 \u003ca href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#spread_in_array_literals\" rel=\"nofollow\"\u003e在数组中使用 spread 语法\u003c/a\u003e,第二种是 \u003ca href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#spread_in_array_literals\" rel=\"nofollow\"\u003e在对象字面量中使用 spread 语法\u003c/a\u003e。\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e既然提到 MDN 文档的话,其实文档中 \u003ca href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#only_for_iterables\" rel=\"nofollow\"\u003e也有说明\u003c/a\u003e。\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://user-images.githubusercontent.com/47357585/143077767-e42432b4-bd7d-4265-92d0-62b2d3fd71df.png\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/47357585/143077767-e42432b4-bd7d-4265-92d0-62b2d3fd71df.png\" alt=\"image\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e本教程该章节提到的「Spread 语法只适用于可迭代对象」是在 \u003ccode class=\"notranslate\"\u003eArray.from\u003c/code\u003e 和 \u003ccode class=\"notranslate\"\u003e[...obj]\u003c/code\u003e 的数组上下文的提到的,所以没有问题。\u003c/p\u003e","upvoteCount":1,"url":"https://github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691303"}}}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:febe747c-d8e1-dc69-251b-be8f16d094b1
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idBDBE:1637A3:3226BF:43258F:6AFBE715
html-safe-nonceac8d4d2965d67cb2ab3e562557d800d318014db42f24f99d4b37b85a82b1da97
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREJFOjE2MzdBMzozMjI2QkY6NDMyNThGOjZBRkJFNzE1IiwidmlzaXRvcl9pZCI6IjU2NzkzNjMwODg0MDczMjQ0MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1e4d843f668a128d0d6b46c12ebde10f6472f863153bbdda50889ef02574be23
hovercard-subject-tagdiscussion:3702302
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/javascript-tutorial/zh.javascript.info/972/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/db783b3f0bce8dbed81de93b8b5fb2223faf614b019a4a38d352c8e64913fadf/javascript-tutorial/zh.javascript.info/discussions/972
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/db783b3f0bce8dbed81de93b8b5fb2223faf614b019a4a38d352c8e64913fadf/javascript-tutorial/zh.javascript.info/discussions/972
og:image:alt在《Rest 参数与 Spread 语法》章节中介绍说明 在该叙述下面的例子中用到 Spread 语法复制对象 在前面的章节《Iterable **object(可迭代对象)》中介绍了普通对象不是迭代对象 所以对红框中的描述有点疑惑,找了MDN。 大佬们,这个地方是否存在歧义😂
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None744d4381b1c4dbd6d8736c7d7e5bbe7dc11217584e457a3555020c631764e8ec
turbo-cache-controlno-preview
go-importgithub.com/javascript-tutorial/zh.javascript.info git https://github.com/javascript-tutorial/zh.javascript.info.git
octolytics-dimension-user_id49552305
octolytics-dimension-user_loginjavascript-tutorial
octolytics-dimension-repository_id128014656
octolytics-dimension-repository_nwojavascript-tutorial/zh.javascript.info
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id128014656
octolytics-dimension-repository_network_root_nwojavascript-tutorial/zh.javascript.info
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedf859c48a4c8b4c0009c19bb4e82101aacb4b998
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjavascript-tutorial%2Fzh.javascript.info%2Fdiscussions%2F972
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjavascript-tutorial%2Fzh.javascript.info%2Fdiscussions%2F972
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=javascript-tutorial%2Fzh.javascript.info
Reloadhttps://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972
Reloadhttps://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972
Reloadhttps://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972
javascript-tutorialhttps://redirect.github.com/javascript-tutorial
zh.javascript.infohttps://redirect.github.com/javascript-tutorial/zh.javascript.info
Codehttps://redirect.github.com/javascript-tutorial/zh.javascript.info
Issues13 (13)https://redirect.github.com/javascript-tutorial/zh.javascript.info/issues
Pull requests17 (17)https://redirect.github.com/javascript-tutorial/zh.javascript.info/pulls
Discussionshttps://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions
Actionshttps://redirect.github.com/javascript-tutorial/zh.javascript.info/actions
Wikihttps://redirect.github.com/javascript-tutorial/zh.javascript.info/wiki
Security and qualityhttps://redirect.github.com/javascript-tutorial/zh.javascript.info/security
Insightshttps://redirect.github.com/javascript-tutorial/zh.javascript.info/pulse
Answered https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691303
songhn233https://redirect.github.com/songhn233
smallpigz https://redirect.github.com/smallpigz
Q&Ahttps://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/categories/q-a
《Rest 参数与 Spread 语法》中可能存在的问题 https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972#top
smallpigz https://redirect.github.com/smallpigz
Answered https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691303
songhn233https://redirect.github.com/songhn233
Return to tophttps://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972#top
Please reload this pagehttps://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972
https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972
smallpigz https://redirect.github.com/smallpigz
Nov 23, 2021 https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussion-3702302
https://user-images.githubusercontent.com/41250661/142994424-a3b91856-2cfc-4f69-ae45-9b568600637e.png
https://user-images.githubusercontent.com/41250661/142994425-fa0ad6c0-6d4e-44df-89ef-9709cc045867.png
https://user-images.githubusercontent.com/41250661/142994844-171b463e-7d1a-4177-a245-a9c16b29403f.png
songhn233 https://redirect.github.com/songhn233
Nov 23, 2021 https://github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691303
在数组中使用 spread 语法https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#spread_in_array_literals
在对象字面量中使用 spread 语法https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#spread_in_array_literals
也有说明https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#only_for_iterables
View full answer https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691303
Oldest https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972?sort=old
Newest https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972?sort=new
Top https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972?sort=top
Please reload this pagehttps://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972
https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972
songhn233 https://redirect.github.com/songhn233
Nov 23, 2021 https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691303
在数组中使用 spread 语法https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#spread_in_array_literals
在对象字面量中使用 spread 语法https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#spread_in_array_literals
也有说明https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#only_for_iterables
https://user-images.githubusercontent.com/47357585/143077767-e42432b4-bd7d-4265-92d0-62b2d3fd71df.png
https://redirect.github.com/smallpigz
Please reload this pagehttps://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972
https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972
smallpigzhttps://redirect.github.com/smallpigz
Nov 24, 2021 https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691702
songhn233https://redirect.github.com/songhn233
Sign up for freehttps://redirect.github.com/join?source=comment-repo
Sign in to commenthttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjavascript-tutorial%2Fzh.javascript.info%2Fdiscussions%2F972
🙏 Q&A https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/categories/q-a
https://redirect.github.com/smallpigz
https://redirect.github.com/songhn233
#971https://redirect.github.com/javascript-tutorial/zh.javascript.info/issues/971
https://redirect.github.com/javascript-tutorial/zh.javascript.info/discussions/972
https://redirect.github.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.