From 5a95acd1790f9be11339824e2e4f174b7c9fc066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=8E=E5=86=A0=E5=AE=87?= Date: Thu, 26 Oct 2023 11:26:15 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2034=E9=98=8E=E5=86=A0?= =?UTF-8?q?=E5=AE=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "34\351\230\216\345\206\240\345\256\207/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "34\351\230\216\345\206\240\345\256\207/.keep" diff --git "a/34\351\230\216\345\206\240\345\256\207/.keep" "b/34\351\230\216\345\206\240\345\256\207/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 126a76a7a322d6714f42df717b0518598ffe013c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=8E=E5=86=A0=E5=AE=87?= Date: Thu, 26 Oct 2023 11:27:02 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E9=98=8E=E5=86=A0=E5=AE=87=E7=9A=84?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 阎冠宇 --- ...026 \351\202\202\351\200\205JavaScript.md" | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 "34\351\230\216\345\206\240\345\256\207/20231026 \351\202\202\351\200\205JavaScript.md" diff --git "a/34\351\230\216\345\206\240\345\256\207/20231026 \351\202\202\351\200\205JavaScript.md" "b/34\351\230\216\345\206\240\345\256\207/20231026 \351\202\202\351\200\205JavaScript.md" new file mode 100644 index 0000000..2a075f5 --- /dev/null +++ "b/34\351\230\216\345\206\240\345\256\207/20231026 \351\202\202\351\200\205JavaScript.md" @@ -0,0 +1,107 @@ +# 笔记 + +JavaScript的组成为:ECMAScript,DOM页面文档对象模型,BOM浏览器对象模型 + +JavaScript书写位置:内部,外部,行内 + +输入:prompt() + +输出:alert() ,document.write() ,console.log() + +alert()和prompt()会跳过页面渲染先被执行 + + + +# 作业 + +## 一. 完成课堂所有的代码 + +```html + + + + + + Document + + + + + + + + +const bingE1 = document.querySelector(".bing") +bingE1.onclick = function(){ + alert("Bing一下") +} +``` + + + +## 二. 简单聊聊JavaScript的历史(自己的话术来总结) + +网景公司急需一种网页脚本语言,使得浏览器可以与网页互动, 1995年网景公司招募了程序员Brendan Eich,希望将Scheme语言作为网页脚本语言的可能性.就在这时,发生了另外一件大事:1995年Sun公司将Oak语言改名为Java,正式向市场推出。但是Brendan Eich对此并不感兴趣,他用10天时间设计出来了JavaScript。借鉴C语言的基本语法;借鉴Java语言的数据类型和内存管理;借鉴Scheme语言,将函数提升到"第一等公民"(first class)的地位;借鉴Self语言,使用基于原型(prototype)的继承机制 + + + +## 三. 说说你对JS引擎的理解(自己的话术总结) + + 高级的编程语言都是需要转成最终的机器指令来执行的, + +SpiderMonkey:第一款JavaScript引擎,由Brendan Eich开发(也就是JavaScript作者); + + Chakra:微软开发,用于IT浏览器; + + JavaScriptCore:WebKit中的JavaScript引擎,Apple公司开发; + +V8:Google开发的强大JavaScript引擎,也帮助Chrome从众多浏览器中脱颖而出; + +WebCore:负责HTML解析、布局、渲染等等相关的工作 + + JavaScriptCore:解析、执行JavaScript代码 + + + +## 四. JavaScript的交互方式有哪些?(后两种方式) + +4 alert ,document.write,console.log() prompt + + + +## 五. 定义一些你日常生活或者在某些程序中见到的变量(10个)(预习) + +```javascript +let name = '史十十' +let age = 19 +let sex = 'girl' +let emial = '100086@163.com' +let tel = 100086 +let address = '福建省厦门市厦门大学' +let school = '厦门大学' +let birthday = '2023-10-26' +let hobby = '唱跳rap打篮球' +let height = '185' +``` + + + +## 六. 说出JavaScript中的常见数据类型以及它们代表的含义(预习) + + + +```javascript +数据性 number +字符串型 string +布尔型 boolen +未定义 undefined +符号性 symbol +空 null +``` + -- Gitee