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: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"《Rest 参数与 Spread 语法》中可能存在的问题","text":"

在《Rest 参数与 Spread 语法》章节中介绍说明

\n

\"Issues1\"

\n

在该叙述下面的例子中用到 Spread 语法复制对象

\n

\"Issues2\"

\n

在前面的章节《Iterable **object(可迭代对象)》中介绍了普通对象不是迭代对象

\n

所以对红框中的描述有点疑惑,找了MDN。

\n

\"Issues3\"

\n

大佬们,这个地方是否存在歧义😂

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

这两种说法是不冲突的。

\n

第一种情况是 在数组中使用 spread 语法,第二种是 在对象字面量中使用 spread 语法

\n

既然提到 MDN 文档的话,其实文档中 也有说明

\n

\"image\"

\n

本教程该章节提到的「Spread 语法只适用于可迭代对象」是在 Array.from[...obj] 的数组上下文的提到的,所以没有问题。

","upvoteCount":1,"url":"https://github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691303"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:93e5b815-24c8-44db-3458-5b8768381a76
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-id9AE8:7994E:E28E8:1372B4:696A9A74
html-safe-nonce616242e934755e7c286aa57f70188117a1533d822455b70b24898479842d2e84
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUU4Ojc5OTRFOkUyOEU4OjEzNzJCNDo2OTZBOUE3NCIsInZpc2l0b3JfaWQiOiI1MjE3OTczNzc0MTgxODk4ODY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb7aacb103633de398ee0c976bd3cf8e39e50960b52ce397e80abebb73294f1f5
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
Nonec0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af
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
release99aab454e5ddc8df30805fb76c114c3008a15842
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/javascript-tutorial/zh.javascript.info/discussions/972#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjavascript-tutorial%2Fzh.javascript.info%2Fdiscussions%2F972
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjavascript-tutorial%2Fzh.javascript.info%2Fdiscussions%2F972
Sign up https://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://github.com/javascript-tutorial/zh.javascript.info/discussions/972
Reloadhttps://github.com/javascript-tutorial/zh.javascript.info/discussions/972
Reloadhttps://github.com/javascript-tutorial/zh.javascript.info/discussions/972
javascript-tutorial https://github.com/javascript-tutorial
zh.javascript.infohttps://github.com/javascript-tutorial/zh.javascript.info
Notifications https://github.com/login?return_to=%2Fjavascript-tutorial%2Fzh.javascript.info
Fork 1.2k https://github.com/login?return_to=%2Fjavascript-tutorial%2Fzh.javascript.info
Star 10.6k https://github.com/login?return_to=%2Fjavascript-tutorial%2Fzh.javascript.info
Code https://github.com/javascript-tutorial/zh.javascript.info
Issues 12 https://github.com/javascript-tutorial/zh.javascript.info/issues
Pull requests 16 https://github.com/javascript-tutorial/zh.javascript.info/pulls
Discussions https://github.com/javascript-tutorial/zh.javascript.info/discussions
Actions https://github.com/javascript-tutorial/zh.javascript.info/actions
Wiki https://github.com/javascript-tutorial/zh.javascript.info/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/javascript-tutorial/zh.javascript.info/security
Please reload this pagehttps://github.com/javascript-tutorial/zh.javascript.info/discussions/972
Insights https://github.com/javascript-tutorial/zh.javascript.info/pulse
Code https://github.com/javascript-tutorial/zh.javascript.info
Issues https://github.com/javascript-tutorial/zh.javascript.info/issues
Pull requests https://github.com/javascript-tutorial/zh.javascript.info/pulls
Discussions https://github.com/javascript-tutorial/zh.javascript.info/discussions
Actions https://github.com/javascript-tutorial/zh.javascript.info/actions
Wiki https://github.com/javascript-tutorial/zh.javascript.info/wiki
Security https://github.com/javascript-tutorial/zh.javascript.info/security
Insights https://github.com/javascript-tutorial/zh.javascript.info/pulse
Answered https://github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691303
songhn233https://github.com/songhn233
smallpigz https://github.com/smallpigz
Q&Ahttps://github.com/javascript-tutorial/zh.javascript.info/discussions/categories/q-a
《Rest 参数与 Spread 语法》中可能存在的问题 https://github.com/javascript-tutorial/zh.javascript.info/discussions/972#top
smallpigz https://github.com/smallpigz
Answered https://github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691303
songhn233https://github.com/songhn233
Return to tophttps://github.com/javascript-tutorial/zh.javascript.info/discussions/972#top
Please reload this pagehttps://github.com/javascript-tutorial/zh.javascript.info/discussions/972
https://github.com/javascript-tutorial/zh.javascript.info/discussions/972
smallpigz https://github.com/smallpigz
Nov 23, 2021 https://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
Give feedback.https://github.com/javascript-tutorial/zh.javascript.info/discussions/972
songhn233 https://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://github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691303
Oldest https://github.com/javascript-tutorial/zh.javascript.info/discussions/972?sort=old
Newest https://github.com/javascript-tutorial/zh.javascript.info/discussions/972?sort=new
Top https://github.com/javascript-tutorial/zh.javascript.info/discussions/972?sort=top
Please reload this pagehttps://github.com/javascript-tutorial/zh.javascript.info/discussions/972
https://github.com/javascript-tutorial/zh.javascript.info/discussions/972
songhn233 https://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
https://user-images.githubusercontent.com/47357585/143077767-e42432b4-bd7d-4265-92d0-62b2d3fd71df.png
Give feedback.https://github.com/javascript-tutorial/zh.javascript.info/discussions/972
https://github.com/smallpigz
Please reload this pagehttps://github.com/javascript-tutorial/zh.javascript.info/discussions/972
https://github.com/javascript-tutorial/zh.javascript.info/discussions/972
smallpigzhttps://github.com/smallpigz
Nov 24, 2021 https://github.com/javascript-tutorial/zh.javascript.info/discussions/972#discussioncomment-1691702
Give feedback.https://github.com/javascript-tutorial/zh.javascript.info/discussions/972
songhn233https://github.com/songhn233
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjavascript-tutorial%2Fzh.javascript.info%2Fdiscussions%2F972
🙏 Q&A https://github.com/javascript-tutorial/zh.javascript.info/discussions/categories/q-a
https://github.com/smallpigz
https://github.com/songhn233
#971https://github.com/javascript-tutorial/zh.javascript.info/issues/971
https://github.com/javascript-tutorial/zh.javascript.info/discussions/972
https://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.