René's URL Explorer Experiment


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

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

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

Description: 【写在前面】多少次咬牙坚持决心将 JavaScript 进行到底,却又半途而废。古语有云,只想做一个安静的切图仔不是一个好的前端汪。前端一直或多或少被人弊病,甚至被后端鄙视,前端入门易,上手快,在整个生态环境中前端的分量常被忽视,后端同学随手 google 下也能写出可以用的页面,前端存在的意义在哪儿?幸好 HTML5 来了, NodeJS 来了,前端的意义也越来越被多数公司认可重视,这是一个最好的时代,前端的春天仿佛真的来了。那么我们还要安心的做一个安静的美(cut)...

Open Graph Description: 【写在前面】多少次咬牙坚持决心将 JavaScript 进行到底,却又半途而废。古语有云,只想做一个安静的切图仔不是一个好的前端汪。前端一直或多或少被人弊病,甚至被后端鄙视,前端入门易,上手快,在整个生态环境中前端的分量常被忽视,后端同学随手 google 下也能写出可以用的页面,前端存在的意义在哪儿?幸好 HTML5 来了, NodeJS 来了,前端的意义也越来越被多数公司认可重视,这是一...

X Description: 【写在前面】多少次咬牙坚持决心将 JavaScript 进行到底,却又半途而废。古语有云,只想做一个安静的切图仔不是一个好的前端汪。前端一直或多或少被人弊病,甚至被后端鄙视,前端入门易,上手快,在整个生态环境中前端的分量常被忽视,后端同学随手 google 下也能写出可以用的页面,前端存在的意义在哪儿?幸好 HTML5 来了, NodeJS 来了,前端的意义也越来越被多数公司认可重视,这是一...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"【JavaScript】【学习心得】学习 JavaScript 第一天","articleBody":"【写在前面】多少次咬牙坚持决心将 JavaScript 进行到底,却又半途而废。古语有云,只想做一个安静的切图仔不是一个好的前端汪。前端一直或多或少被人弊病,甚至被后端鄙视,前端入门易,上手快,在整个生态环境中前端的分量常被忽视,后端同学随手 google 下也能写出可以用的页面,前端存在的意义在哪儿?幸好 HTML5 来了, NodeJS 来了,前端的意义也越来越被多数公司认可重视,这是一个最好的时代,前端的春天仿佛真的来了。那么我们还要安心的做一个安静的美(cut)男子(boy)吗?答案显然是 NO!咳咳,安静还是必须的,我们可以志存高远,向着全栈工程师的党项努力,另一方面更要脚踏实地,夯实基础,这样才能精通各种奇淫技巧,不论是 nodejs 还是 fibjs 都能为我所用,才能做到手中无刀,心中有刀,无刀胜有刀。感谢 [90 天慕女神助力计划](http://www.imooc.com/wenda/detail/234205),让我们找到了学习的欲望和借口,大奖在哪儿,大奖在哪儿???90 天,你能坚持下去吗,90天你会收获什么吗?大浪淘沙,优胜劣汰,这个看脸的世界,还好,还有进化论这样伟大的意义存在。\n\n想我打小骨骼惊奇,便是百年难遇的练武奇才,人在江湖飘,不怀揣几本武林秘籍怎么行走江湖。早已坐拥《JavaScript DOM 编程艺术》,《JavaScript 高级程序设计》,《JavaScript 语言精粹》,《JavaScript 权威指南》好几本大部头宝典呢。艾玛好多,九十天能练成盖世武功吗?轻轻抽出看上去最艺术的《JavaScript DOM 编程艺术》,对!就是你了,我喜欢艺术,无论是xx艺术还是xx艺术。拍拍胸脯,告诉自己我行我行我行行行(牛皮已经吹成这样了,不坚持下去实在是太脸了,还怎么好意思在前端圈混下去?)。\n\n言归正传,我在 github 上也维护了一个 repo:[Learning-JavaScript](https://github.com/paddingme/Learning-JavaScript),如果你也和我一样,基础不太好,想要努力啃下 JavaScript 这块烂骨头,欢迎一起维护,一起学习。\n\n我将从《JavaScript DOM 编程艺术》-\u003e《JavaScript 高级程序设计》-\u003e《JavaScript 语言精粹》-\u003e《JavaScript 权威指南》的路线进行学习,记录下一路学到的重要知识点,并进行不断的 review 和对相关知识点的总结。\n\n那我们开始就先从《JavaScript DOM 编程艺术》吧。\n# 第一章 JavaScript 简史\n\nJavaScript 的另一个名字叫 ECMAScript。我们通常所说的 BOM(Browser Object Model)是指浏览器对象模型,而 DOM(Document Object Model)则是指文档对象模型。\n## 什么是 DOM ?\n\n简单地说,DOM 是一套对文档的内容进行抽象和概念化的方法;  \nDOM 是一种 API。API 简单地说是一组已经得到有关各方共同认可的基本约定。\n\nW3C 对 DOM 的定义是:\n\n\u003e 一个与系统平台和编程语言无关的接口,程序和脚本可以通过这个接口动态地访问和修改文档的内容、结构和样式。\n## 浏览器内核\n- IE: trident 内核\n- Firefox:gecko 内核\n- Safari/chrome: webkit 内核\n\n浏览器内核更正确的应该叫 “Rendering Engine”,即渲染引擎。更多的关于浏览器内核的知识可以参加如下文章:\n- [浏览器内核](http://baike.baidu.com/view/1369399.htm)\n- [浏览器内核](http://www.baike.com/wiki/%E6%B5%8F%E8%A7%88%E5%99%A8%E5%86%85%E6%A0%B8)\n- [关于浏览器内核的一些小知识](http://www.iplaysoft.com/browsers-engine.html)\n  \n  JavaScript 的来龙去脉,对 JavaScript 的学习会更有好处,至少会有更多的感性认识。如果你想了解更详尽的 Javascript  的诞生,可以参考阮一峰写的 [Javascript诞生记](http://www.ruanyifeng.com/blog/2011/06/birth_of_javascript.html),这里摘抄下重点:\n\n\u003e 网景公司动了心,决定与 Sun 公司结成联盟。它不仅允许 Java 程序以 applet (小程序)的形式,直接在浏览器中运行;甚至还考虑直接将 Java 作为脚本语言嵌入网页,只是因为这样会使HTML网页过于复杂,后来才不得不放弃。\n\u003e 总之,当时的形势就是,网景公司的整个管理层,都是Java语言的信徒,Sun公司完全介入网页脚本语言的决策。因此,Javascript 后来就是网景和 Sun 两家公司一起携手推向市场的,这种语言被命名为\" Java+script \"并不是偶然的。\n\u003e 此时,34岁的系统程序员 Brendan Eich 登场了。1995年4月,网景公司录用了他。\n\u003e 仅仅一个月之后,1995年5月,网景公司做出决策,未来的网页脚本语言必须\"看上去与 Java 足够相似\",但是比 Java 简单,使得非专业的网页作者也能很快上手。这个决策实际上将 Perl、Python、Tcl、Scheme 等非面向对象编程的语言都排除在外了。\n\u003e Brendan Eich 被指定为这种\"简化版 Java 语言\"的设计师。\n# 第二章 语法\n1. `\u003cscript\u003e` 标签不需要包含 `type=\"text/javascript\"`,因为脚本默认是 JavaScript。\n2. JAVA 属于编译型语言,需要编译器,而 JavaScript 属于解释型语言,在 互联网环境中, Web 浏览器负责完成 JavaScript 有关的解释和执行工作。\n   \n   用编译型语言编写的代码有错误,这些错误在代码编译阶段就能被发现。而解释型语言代码中的错误只能等到解释器执行到有关代码时才能被发现。\n   \n   在面试的时候如果面试官要问你 JAVA 和 JavaScript,不要再说是子集什么的(TNT),他们是雷锋和雷峰塔的区别啊。详细请戳 [JavaScript 与 Java 有什么不同?](https://www.java.com/zh_CN/download/faq/java_javascript.xml)\n3. JavaScript 中也可以使用 HTML 风格注释,如:\n   \n   ``` javascript\n         \u003c!-- 这是 JavaScript 的注释,不必在结尾加上--\u003e。\n   ```\n   \n   但为了区分,应使用 `//` 注释单行,`/* */` 注释多行。\n4. JavaScript 允许直接赋值而无需声明。\n   \n   JavaScript 语法不允许变量名中包含空格或标点符号(“$” 除外)。\n   \n   JavaScript  变量名允许包含字母、数字、美元符号和下划线(但第一个字符不允许是数字)\n   \n   ``` javascript\n   var myMood = \"happy\";\n   ```\n   \n   上述代码中 “happy” 是 JavaScript 中的一个字面量(literal), 亦即可以直接在 JavaScript 代码中写出来的数据。\n5. JavaScript 不需要进行类型声明, 是一种弱类型( weakly typed)语言,意味着可以在任何阶段改变变量的数据类型。\n6. 数组:\n   \n   ``` javascript\n   var beatles = Array();\n   \n   var beatles = Array(4);\n   \n   beatles[0] = \"John\";\n   \n   var beatles = Array(\"John\",\"Paul\",\"George\",\"Ringo\");\n   \n   var beatles = [\"John\",\"Paul\",\"George\",\"Ringo\"];\n   \n   var lennon = [\"John\",1940,false];\n   \n   //不推荐如下的关联数组:\n   var lennon = Array();\n   lennon[\"name\"] = \"John\";\n   ```\n   \n   在  JavaScript 中,所有的变量都是某种类型的对象,你感受下。理想情况下,你不应该改修改 Array 对象的属性, 而应该使用通用的对象(object)。\n7. 对象:\n   \n   ``` javascript\n   var lennon = Object();\n   lennon.name = \"John\";\n   lennon.year = 1940;\n   lennon.living = false;\n   \n   var leenon = { \"name\":\"John\", year:1940, living:false };\n   \n   var beatles = {};\n   beatles.vocalist = lennon;\n   \n   ```\n8. 在命名变量时,可以用下划线来分割单词。在函数命令时,可使用驼峰法命名。\n9. 如果在某个函数中使用了 `var`, 则那个变量将被视为一个局部变量,它只存在这个函数的上下文中;反之如果没有使用 `var`,那个变量将被视为全局变量,若脚本里已经存在一个与之同名的全局变量,则这个函数将会改变那个变量的值。\n10. 对象是自包含的数据集合,包含在对象里的数据可以通过两种形式来访问——属性(property) 和方法 (method):\n    - 属性是隶属于某个特定对象的变量;\n    - 方法是只有某个特定对象才能调用的函数。\n    \n    对象就是由一些属性和方法组合在一起而构成的一个数据实体。\n11. 对象:\n    - 自定义对象(用户自己创建的对象)\n    - 内建对象( JavaScript 提供的一系列预先定义好的对象,可以拿来就用)\n    - 宿主对象(由 JavaScript 运行环境提供的对象,对于web应用,运行环境即是浏览器,由浏览器提供的预定义对象即为宿主对象,宿主对象包括 Form、Image 、Element和 Document 等 )\n\n好了今天就学习到这里,咱们明天再见。\n\n\u003e 习武之人,务必沉心静气,切忌浮躁,小心走火入魔哦。\n","author":{"url":"https://github.com/paddingme","@type":"Person","name":"paddingme"},"datePublished":"2014-11-17T14:53:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/Learning-JavaScript/issues/1"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:755c1964-d9c1-1aba-cdca-efd71087f794
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8640:4B5E5:260D5EF:3781618:6A60D66A
html-safe-noncee00608ac3ed23235467a517c6d4e0311c1be65ba0655f691f7fde62d86a18fce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjQwOjRCNUU1OjI2MEQ1RUY6Mzc4MTYxODo2QTYwRDY2QSIsInZpc2l0b3JfaWQiOiIzNzc1ODg5MDczNzg3NDI2NDEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2bdaa60ee33bfe2af521df7711f106741f0ac0d603beb4bb672ee442b4b1ca7b
hovercard-subject-tagissue:49098766
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/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8f3c0ee14f125669a3a50831d6ae2cae4bdb9fb98c9a038bd94ac029de0bb553/paddingme/Learning-JavaScript/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8f3c0ee14f125669a3a50831d6ae2cae4bdb9fb98c9a038bd94ac029de0bb553/paddingme/Learning-JavaScript/issues/1
og:image:alt【写在前面】多少次咬牙坚持决心将 JavaScript 进行到底,却又半途而废。古语有云,只想做一个安静的切图仔不是一个好的前端汪。前端一直或多或少被人弊病,甚至被后端鄙视,前端入门易,上手快,在整个生态环境中前端的分量常被忽视,后端同学随手 google 下也能写出可以用的页面,前端存在的意义在哪儿?幸好 HTML5 来了, NodeJS 来了,前端的意义也越来越被多数公司认可重视,这是一...
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/1#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpaddingme%2FLearning-JavaScript%2Fissues%2F1
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%2F1
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/1
Reloadhttps://github.com/paddingme/Learning-JavaScript/issues/1
Reloadhttps://github.com/paddingme/Learning-JavaScript/issues/1
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/1#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 17, 2014https://github.com/paddingme/Learning-JavaScript/issues/1#issue-49098766
90 天慕女神助力计划http://www.imooc.com/wenda/detail/234205
Learning-JavaScripthttps://github.com/paddingme/Learning-JavaScript
浏览器内核http://baike.baidu.com/view/1369399.htm
浏览器内核http://www.baike.com/wiki/%E6%B5%8F%E8%A7%88%E5%99%A8%E5%86%85%E6%A0%B8
关于浏览器内核的一些小知识http://www.iplaysoft.com/browsers-engine.html
Javascript诞生记http://www.ruanyifeng.com/blog/2011/06/birth_of_javascript.html
JavaScript 与 Java 有什么不同?https://www.java.com/zh_CN/download/faq/java_javascript.xml
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.