René's URL Explorer Experiment


Title: __proto__ 和 prototype · Issue #2 · K0II/JavaScript · GitHub

Open Graph Title: __proto__ 和 prototype · Issue #2 · K0II/JavaScript

X Title: __proto__ 和 prototype · Issue #2 · K0II/JavaScript

Description: Object includes a prototype linkage feature that allows one object to inherit the properties of another. 基本上任何对象都有一个__proto__,并且都不为空,不能直接修改,而函数对象的prototype属性是可以修改的 [ ES5中是Object.getPrototypeOf() ] var Person = function(name,age){ this.na...

Open Graph Description: Object includes a prototype linkage feature that allows one object to inherit the properties of another. 基本上任何对象都有一个__proto__,并且都不为空,不能直接修改,而函数对象的prototype属性是可以修改的 [ ES5中是Object.getPrototypeOf() ] ...

X Description: Object includes a prototype linkage feature that allows one object to inherit the properties of another. 基本上任何对象都有一个__proto__,并且都不为空,不能直接修改,而函数对象的prototype属性是可以修改的 [ ES5中是Object.getPrototypeOf() ] ...

Opengraph URL: https://github.com/K0II/JavaScript/issues/2

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"__proto__ 和 prototype","articleBody":"\u003cbr\u003e\n\n\u003e  Object includes a prototype linkage feature that allows one object to inherit the properties of another.\n\n基本上任何对象都有一个`__proto__`,并且都不为空,不能直接修改,而函数对象的prototype属性是可以修改的\n\n[ ES5中是`Object.getPrototypeOf()` ]\n\u003cbr\u003e\n\n``` javascript\nvar Person = function(name,age){\n      this.name = name || 'Down';\n      this.age = age || 18;\n}\n\nPerson.prototype.say = function(){\n      console.log(this.age);\n}\n\nvar person1 = new Person('John',10);\n\nperson1.__proto__;     //  Object {}    ==\u003e  Object.prototype\nconsole.log(person1.name, person1.age);    //  John 10\nperson1.say();    //  10\n\nvar person2 = new Person();\n\nperson2.say === person1.say;    //  true\n```\n\n\u003cbr\u003e\n\n``` javascript\nvar Person = {\n      name: 'Down' || this.name,\n      age: 18 || this.age\n}\n\nvar person1 = Object.create(Person);\n\nperson1.__proto__;       //    Object { name=\"Down\",  age=18}    ==\u003e  Person\nconsole.log(person1.name, person1.age);      //  Down  18\n\nperson1.age = 30;\nconsole.log(person1.name, person1.age);      //  Down  30\n\nvar person2 = Object.create(Person);\n\nperson1.name === person2.name;    //  true\n```\n\n`new fn()`,生成一个对象,对象的`__proto__`绑定到被调用的函数的`fn.prototype`上\n`Object.create(o)`创建的对象,生成的对象的`__proto__`绑定到`o`上\n\u003cbr\u003e\nJavaScript: The Good Parts,[ES5标准中已经可用]\n\n``` javascript\nObject.create = function (o) {\n      var F = function () {};\n      F.prototype = o;\n      return new F();\n};\n\nvar b=Object.create(a);\n```\n\n\u003cbr\u003e\n","author":{"url":"https://github.com/K0II","@type":"Person","name":"K0II"},"datePublished":"2016-05-23T08:42:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2/JavaScript/issues/2"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d9cda433-b9bf-7a32-c8bd-e24a10d8eaa1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC6E4:25572C:8D70D32:C4EFC8C:6A502597
html-safe-nonce7255ac8b4debfb74196d1caba4af47e4b31e83a7b84642babe444f6d2c22365e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkU0OjI1NTcyQzo4RDcwRDMyOkM0RUZDOEM6NkE1MDI1OTciLCJ2aXNpdG9yX2lkIjoiNTY2MjYzNzc1NTYwMTAwMzkyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd61b9b04ad324eb71747ded4351feee01bfb2920a501fa6650ade6a12e26abbe
hovercard-subject-tagissue:156228109
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/K0II/JavaScript/2/issue_layout
twitter:imagehttps://opengraph.githubassets.com/73c4e086091a5334a2a6046640fd5e333422786518016957ca21f90c79bad4fe/K0II/JavaScript/issues/2
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/73c4e086091a5334a2a6046640fd5e333422786518016957ca21f90c79bad4fe/K0II/JavaScript/issues/2
og:image:altObject includes a prototype linkage feature that allows one object to inherit the properties of another. 基本上任何对象都有一个__proto__,并且都不为空,不能直接修改,而函数对象的prototype属性是可以修改的 [ ES5中是Object.getPrototypeOf() ] ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameK0II
hostnamegithub.com
expected-hostnamegithub.com
Nonea08040246389072795e3b4e7b33c6d9a0c564eee02e829a809326d67c418b069
turbo-cache-controlno-preview
go-importgithub.com/K0II/JavaScript git https://github.com/K0II/JavaScript.git
octolytics-dimension-user_id19141974
octolytics-dimension-user_loginK0II
octolytics-dimension-repository_id57857936
octolytics-dimension-repository_nwoK0II/JavaScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id57857936
octolytics-dimension-repository_network_root_nwoK0II/JavaScript
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
released1b91b18e7330fc458dfd824c61eaed7daa830d6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/K0II/JavaScript/issues/2#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FK0II%2FJavaScript%2Fissues%2F2
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2FK0II%2FJavaScript%2Fissues%2F2
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=K0II%2FJavaScript
Reloadhttps://github.com/K0II/JavaScript/issues/2
Reloadhttps://github.com/K0II/JavaScript/issues/2
Reloadhttps://github.com/K0II/JavaScript/issues/2
K0II https://github.com/K0II
JavaScripthttps://github.com/K0II/JavaScript
Notifications https://github.com/login?return_to=%2FK0II%2FJavaScript
Fork 0 https://github.com/login?return_to=%2FK0II%2FJavaScript
Star 0 https://github.com/login?return_to=%2FK0II%2FJavaScript
Code https://github.com/K0II/JavaScript
Issues 7 https://github.com/K0II/JavaScript/issues
Pull requests 0 https://github.com/K0II/JavaScript/pulls
Actions https://github.com/K0II/JavaScript/actions
Projects https://github.com/K0II/JavaScript/projects
Security and quality 0 https://github.com/K0II/JavaScript/security
Insights https://github.com/K0II/JavaScript/pulse
Code https://github.com/K0II/JavaScript
Issues https://github.com/K0II/JavaScript/issues
Pull requests https://github.com/K0II/JavaScript/pulls
Actions https://github.com/K0II/JavaScript/actions
Projects https://github.com/K0II/JavaScript/projects
Security and quality https://github.com/K0II/JavaScript/security
Insights https://github.com/K0II/JavaScript/pulse
__proto__ 和 prototypehttps://github.com/K0II/JavaScript/issues/2#top
https://github.com/K0II
K0IIhttps://github.com/K0II
on May 23, 2016https://github.com/K0II/JavaScript/issues/2#issue-156228109
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.