René's URL Explorer Experiment


Title: 【JavaScript】【学习心得】学习 JavaScript 第三天 · Issue #6 · paddingme/Learning-JavaScript · GitHub

Open Graph Title: 【JavaScript】【学习心得】学习 JavaScript 第三天 · Issue #6 · paddingme/Learning-JavaScript

X Title: 【JavaScript】【学习心得】学习 JavaScript 第三天 · Issue #6 · paddingme/Learning-JavaScript

Description: 艾玛,昨天的 【JavaScript】【学习心得】学习 JavaScript 第三天被运营同学推荐置顶了,并且推荐编辑器支持 markdown 语法也注意到了,imooc 超棒的。好的,咱们继续学习 JavaScript 吧。 先回顾下昨天学的知识吧,主要学习了常用的几个 DOM 操作方法: document.getElementById(id); document.getElementsByTagName(tag); document.getElementsByCla...

Open Graph Description: 艾玛,昨天的 【JavaScript】【学习心得】学习 JavaScript 第三天被运营同学推荐置顶了,并且推荐编辑器支持 markdown 语法也注意到了,imooc 超棒的。好的,咱们继续学习 JavaScript 吧。 先回顾下昨天学的知识吧,主要学习了常用的几个 DOM 操作方法: document.getElementById(id); document.getElementsB...

X Description: 艾玛,昨天的 【JavaScript】【学习心得】学习 JavaScript 第三天被运营同学推荐置顶了,并且推荐编辑器支持 markdown 语法也注意到了,imooc 超棒的。好的,咱们继续学习 JavaScript 吧。 先回顾下昨天学的知识吧,主要学习了常用的几个 DOM 操作方法: document.getElementById(id); document.getElementsB...

Opengraph URL: https://github.com/paddingme/Learning-JavaScript/issues/6

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"【JavaScript】【学习心得】学习 JavaScript 第三天","articleBody":"艾玛,昨天的 [【JavaScript】【学习心得】学习 JavaScript 第三天](http://www.imooc.com/wenda/detail/235873)被运营同学推荐置顶了,并且推荐编辑器支持 markdown 语法也注意到了,imooc 超棒的。好的,咱们继续学习 JavaScript 吧。\n\n先回顾下昨天学的知识吧,主要学习了常用的几个 DOM 操作方法:\n- `document.getElementById(id)`;\n- `document.getElementsByTagName(tag)`;\n- `document.getElementsByClassName(class)`,注意旧的浏览器不支持,需要重写;\n- `object.getAttribute(attribute)`\n- `object.setAttribute(attribute,value)`\n\n好了今天咱们学习《第四章  案例研究: JavaScript 图片库》 来动起手来,咱们一起来写一个简单的 JavaScript 图片库,至于细节方面大家可以翻下下仔细研读下,我就不搬运了,我怕作者来打我。\n\n好了,我们首先来掌握下我们需要知道的知识点:\n1. 事件处理函数(event handler)的作用是:在特定事件发生时调用特定的 JavaScript 代码。\n2. 如何禁止点击事件之后,链接继续跳转。\n   \n   ```\n   \u003ca href=\"images/codercat.jpg\"  onclick=\"showPic(this);return false;\"\u003ecodercat\u003c/a\u003e\n   ```\n3. `childNodes`  属性返回包含被选节点的子节点的 NodeList。\n   如果选定的节点没有子节点,则该属性返回不包含节点的 NodeList。文档里几乎每一样东西都是一个节点,甚至连空格和换行符都会被解释为节点,而它们也全部包含在 `childNodes` 属性所返回的数组当中。\n4. `nodeType` 属性可返回节点的节点类型。  \n   `nodeType` 属性总共有 12 种可能值,但其中仅有 3 种具有使用价值:\n   - 元素节点的 `nodeType` 属性值为 1;\n   - 属性节点的 `nodeType` 属性值为 2;\n   - 文本节点的 `nodeType` 属性值为 3;\n5. `nodeValue` 属性可设置或返回某节点的值,根据其类型。\n   \n   ```\n   \u003cp id=\"decription\"\u003e请选择一张图片\u003c/p\u003e\n   ```\n   \n   `document.getElementById('decription').nodevalue` 为空,其文本内容应该是第一个字节点。\n   \n   应该是 `document.getElementById('decription').childNodes[0].nodevalue`\n   1. `firstChild` 属性返回被选节点的第一个子节点。`lastChild` 属性返回被选节点的最后一个子节点。\n      如果它们选定的节点没有子节点,则该属性返回 NULL。\n\n好的 我们来看下代码结构:\n\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"zh-cmn-Hans\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003ctitle\u003e1-4 案例研究: JavaScript 图片库\u003c/title\u003e\n    \u003cstyle\u003e\n        body {\n           margin: 1em 10%;\n           color: #333;\n           background-color: #ccc;\n           font-family: \"Helvetica\",\"Arial\",serif;\n        }\n        h1 {\n            color: #333;\n            background-color: rgba(0, 0, 0, 0);\n        }\n        a {\n            color: #c60;\n            background-color: rgba(0, 0, 0, 0);\n            font-weight: bold;\n            text-decoration: none;\n        }\n        ul {\n            padding: 0;\n        }\n        li {\n            float: left;\n            padding: 1em;\n            list-style-type: none;\n        }\n        img {\n            display: block;\n            clear: both;\n            width: 424px;\n            height: 424px;\n            border: 1px solid #ccc;\n        }\n    \u003c/style\u003e\n\n\u003c/head\u003e\n\n\u003cbody\u003e\n    \u003ch1\u003eSnapshots\u003c/h1\u003e\n    \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"images/codercat.jpg\"  title=\"This is codercat.jpg.\" onclick=\"showPic(this);return false;\"\u003ecodercat\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"images/inspectocat.jpg\" title=\"This is inspectocat.jpg.\" onclick=\"showPic(this);return false;\"\u003einspectocat\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"images/maxtocat.gif\" title=\"This is maxtocat.gif.\" onclick=\"showPic(this);return false;\"\u003emaxtocat\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"images/yaktocat.png\" title=\"This is yaktocat.png.\" onclick=\"showPic(this);return false;\"\u003eyaktocat\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"images/octobiwan.jpg\" title=\"This isoctobiwan.jpg.\" onclick=\"showPic(this);return false;\"\u003eoctobiwan\u003c/a\u003e\u003c/li\u003e\n    \u003c/ul\u003e\n\n    \u003cimg id=\"placeholder\"  src=\"images/codercat.jpg\" alt=\"\"\u003e\n\n    \u003cp id=\"decription\"\u003e请选择一张图片\u003c/p\u003e\n\n    \u003cscript\u003e\n        function showPic(whichpic){\n            var source = whichpic.getAttribute('href');\n            var placeholder = document.getElementById('placeholder');\n            placeholder.setAttribute('src',source);\n            //placeholder.src = source;\n            var text = whichpic.getAttribute('title');\n            var decription = document.getElementById('decription');\n            decription.firstChild.nodeValue = text;\n        }\n    \u003c/script\u003e\n\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n你掌握了吗,自己敲出来看看。 是不是很棒哦,哦 对了,这里的图片我选的很萌很萌的 github 的那些猫。 \n### DEMO 地址:[codepen](http://codepen.io/paddingme/pen/qCuDo) 或者[1-4.html](https://github.com/paddingme/Learning-JavaScript/blob/master/Demo/1-4.html)\n","author":{"url":"https://github.com/paddingme","@type":"Person","name":"paddingme"},"datePublished":"2014-11-19T15:00:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6/Learning-JavaScript/issues/6"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1e53d9fa-4462-78b6-6641-63f8e86538c2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCCA8:322A1C:26351D5:37D888F:6A60D671
html-safe-noncea52a889e11673ac83e78b0effc93078d1bd5d23c55907ceb4eb62ff1fcbbeab8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0E4OjMyMkExQzoyNjM1MUQ1OjM3RDg4OEY6NkE2MEQ2NzEiLCJ2aXNpdG9yX2lkIjoiNjIxNzg4MjkxOTk0NjQ3NTEyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7ba13d4d8ef9cefc93cae9b4dc9a224a7da4c0890676728040db7a04941b81ab
hovercard-subject-tagissue:49403274
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/paddingme/Learning-JavaScript/6/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ecbfde5ddd76d8f879f49f11c884f013d86acddadbc74aa45aa17cc182107bea/paddingme/Learning-JavaScript/issues/6
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ecbfde5ddd76d8f879f49f11c884f013d86acddadbc74aa45aa17cc182107bea/paddingme/Learning-JavaScript/issues/6
og:image:alt艾玛,昨天的 【JavaScript】【学习心得】学习 JavaScript 第三天被运营同学推荐置顶了,并且推荐编辑器支持 markdown 语法也注意到了,imooc 超棒的。好的,咱们继续学习 JavaScript 吧。 先回顾下昨天学的知识吧,主要学习了常用的几个 DOM 操作方法: document.getElementById(id); document.getElementsB...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepaddingme
hostnamegithub.com
expected-hostnamegithub.com
None025e511fb0e6dd11aaa36892212f7bcc13708244bc2bcbeff1cf34fc77723812
turbo-cache-controlno-preview
go-importgithub.com/paddingme/Learning-JavaScript git https://github.com/paddingme/Learning-JavaScript.git
octolytics-dimension-user_id5771087
octolytics-dimension-user_loginpaddingme
octolytics-dimension-repository_id25473884
octolytics-dimension-repository_nwopaddingme/Learning-JavaScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id25473884
octolytics-dimension-repository_network_root_nwopaddingme/Learning-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
release405b1f59618e9c5e102e2408c26ce58f1937fbca
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/paddingme/Learning-JavaScript/issues/6#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpaddingme%2FLearning-JavaScript%2Fissues%2F6
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2Fpaddingme%2FLearning-JavaScript%2Fissues%2F6
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=paddingme%2FLearning-JavaScript
Reloadhttps://github.com/paddingme/Learning-JavaScript/issues/6
Reloadhttps://github.com/paddingme/Learning-JavaScript/issues/6
Reloadhttps://github.com/paddingme/Learning-JavaScript/issues/6
paddingme https://github.com/paddingme
Learning-JavaScripthttps://github.com/paddingme/Learning-JavaScript
Notifications https://github.com/login?return_to=%2Fpaddingme%2FLearning-JavaScript
Fork 13 https://github.com/login?return_to=%2Fpaddingme%2FLearning-JavaScript
Star 28 https://github.com/login?return_to=%2Fpaddingme%2FLearning-JavaScript
Code https://github.com/paddingme/Learning-JavaScript
Issues 30 https://github.com/paddingme/Learning-JavaScript/issues
Pull requests 0 https://github.com/paddingme/Learning-JavaScript/pulls
Actions https://github.com/paddingme/Learning-JavaScript/actions
Projects https://github.com/paddingme/Learning-JavaScript/projects
Wiki https://github.com/paddingme/Learning-JavaScript/wiki
Security and quality 0 https://github.com/paddingme/Learning-JavaScript/security
Insights https://github.com/paddingme/Learning-JavaScript/pulse
Code https://github.com/paddingme/Learning-JavaScript
Issues https://github.com/paddingme/Learning-JavaScript/issues
Pull requests https://github.com/paddingme/Learning-JavaScript/pulls
Actions https://github.com/paddingme/Learning-JavaScript/actions
Projects https://github.com/paddingme/Learning-JavaScript/projects
Wiki https://github.com/paddingme/Learning-JavaScript/wiki
Security and quality https://github.com/paddingme/Learning-JavaScript/security
Insights https://github.com/paddingme/Learning-JavaScript/pulse
【JavaScript】【学习心得】学习 JavaScript 第三天https://github.com/paddingme/Learning-JavaScript/issues/6#top
Mu-Help-Planhttps://github.com/paddingme/Learning-JavaScript/issues?q=state%3Aopen%20label%3A%22Mu-Help-Plan%22
https://github.com/paddingme
paddingmehttps://github.com/paddingme
on Nov 19, 2014https://github.com/paddingme/Learning-JavaScript/issues/6#issue-49403274
【JavaScript】【学习心得】学习 JavaScript 第三天http://www.imooc.com/wenda/detail/235873
codepenhttp://codepen.io/paddingme/pen/qCuDo
1-4.htmlhttps://github.com/paddingme/Learning-JavaScript/blob/master/Demo/1-4.html
Mu-Help-Planhttps://github.com/paddingme/Learning-JavaScript/issues?q=state%3Aopen%20label%3A%22Mu-Help-Plan%22
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.