From e7c0cfdaaccf233a9185c27dc19c1b06e2ec32b5 Mon Sep 17 00:00:00 2001 From: DuYi Date: Tue, 27 Aug 2024 10:14:28 +0800 Subject: [PATCH] auto commit --- 01. 浏览器的渲染流程/浏览器的渲染流程.md | 1 + 01. 浏览器的渲染流程/课堂代码/index.html | 2 +- 01. 浏览器的渲染流程/课堂代码/动画.html | 1 + 02. 资源提示关键词/资源提示关键词.md | 1 + 03. 浏览器的组成部分/浏览器的组成部分.md | 2 +- 04. 浏览器的离线存储概述/浏览器离线存储概述.md | 2 +- 05. WebSQL/WebSQL.md | 2 +- 06. IndexedDB/IndexedDB.md | 2 +- 06. IndexedDB/IndexedDB课堂代码/db.js | 2 +- 06. IndexedDB/IndexedDB课堂代码/index.html | 2 +- 07. File API/File API.md | 2 +- 07. File API/File API课堂代码/index.html | 2 +- 08. 浏览器的缓存/浏览器缓存.md | 1 + 08. 浏览器的缓存/浏览器缓存Demo/server.js | 2 +- 08. 浏览器的缓存/浏览器缓存Demo/static/css/index.css | 2 +- 08. 浏览器的缓存/浏览器缓存Demo/static/html/index.html | 2 +- 08. 浏览器的缓存/浏览器缓存Demo/static/js/index.js | 2 +- 09. 跨标签页通信概述/跨标签页通信.md | 2 +- 10. BroadCast实现跨标签页通信/课堂代码/index.html | 2 +- 10. BroadCast实现跨标签页通信/课堂代码/index2.html | 2 +- 11. ServiceWorker实现跨标签页通信/课堂代码/index.html | 2 +- 11. ServiceWorker实现跨标签页通信/课堂代码/index2.html | 2 +- 11. ServiceWorker实现跨标签页通信/课堂代码/sw.js | 2 +- 12. storage实现跨标签页通信/课堂代码/index.html | 2 +- 12. storage实现跨标签页通信/课堂代码/index2.html | 2 +- 13. SharedWorker实现跨标签页通信/课堂代码/index.html | 2 +- 13. SharedWorker实现跨标签页通信/课堂代码/index2.html | 2 +- 13. SharedWorker实现跨标签页通信/课堂代码/worker.js | 2 +- 14. IndexedDB实现跨标签页通信/课堂代码/db.js | 2 +- 14. IndexedDB实现跨标签页通信/课堂代码/index.html | 2 +- 14. IndexedDB实现跨标签页通信/课堂代码/index2.html | 2 +- 15. cookie实现跨标签页通信/课堂代码/index.html | 2 +- 15. cookie实现跨标签页通信/课堂代码/index2.html | 2 +- 16. postMessage实现跨标签页通信/课堂代码/index.html | 2 +- 16. postMessage实现跨标签页通信/课堂代码/index2.html | 2 +- 17. Websocket实现跨标签页通信/课堂代码/index.html | 2 +- 17. Websocket实现跨标签页通信/课堂代码/index2.html | 2 +- 17. Websocket实现跨标签页通信/课堂代码/server.js | 2 +- 18. Web Worker/web worker.md | 2 +- 18. Web Worker/web worker课堂代码/index.html | 2 +- 18. Web Worker/web worker课堂代码/worker.js | 2 +- 浏览器面试题汇总.md | 1 + 浏览器面试题汇总(无答案版).md | 1 + 43 files changed, 43 insertions(+), 37 deletions(-) diff --git a/01. 浏览器的渲染流程/浏览器的渲染流程.md b/01. 浏览器的渲染流程/浏览器的渲染流程.md index c91ae3a..7cb80fc 100644 --- a/01. 浏览器的渲染流程/浏览器的渲染流程.md +++ b/01. 浏览器的渲染流程/浏览器的渲染流程.md @@ -315,3 +315,4 @@ context.stroke(); // 进行勾勒 -*EOF*- + diff --git a/01. 浏览器的渲染流程/课堂代码/index.html b/01. 浏览器的渲染流程/课堂代码/index.html index 3fa34fc..4dd753c 100644 --- a/01. 浏览器的渲染流程/课堂代码/index.html +++ b/01. 浏览器的渲染流程/课堂代码/index.html @@ -30,4 +30,4 @@ op.style.marginLeft = "200px"; - \ No newline at end of file + diff --git a/01. 浏览器的渲染流程/课堂代码/动画.html b/01. 浏览器的渲染流程/课堂代码/动画.html index 904a77c..b69d54f 100644 --- a/01. 浏览器的渲染流程/课堂代码/动画.html +++ b/01. 浏览器的渲染流程/课堂代码/动画.html @@ -49,3 +49,4 @@ + diff --git a/02. 资源提示关键词/资源提示关键词.md b/02. 资源提示关键词/资源提示关键词.md index b69396b..df6c5b4 100644 --- a/02. 资源提示关键词/资源提示关键词.md +++ b/02. 资源提示关键词/资源提示关键词.md @@ -233,3 +233,4 @@ -*EOF*- + diff --git a/03. 浏览器的组成部分/浏览器的组成部分.md b/03. 浏览器的组成部分/浏览器的组成部分.md index 1e9003b..12a4f9c 100644 --- a/03. 浏览器的组成部分/浏览器的组成部分.md +++ b/03. 浏览器的组成部分/浏览器的组成部分.md @@ -214,4 +214,4 @@ ------ --*EOF*- \ No newline at end of file +-*EOF*- diff --git a/04. 浏览器的离线存储概述/浏览器离线存储概述.md b/04. 浏览器的离线存储概述/浏览器离线存储概述.md index a73d019..c984a35 100644 --- a/04. 浏览器的离线存储概述/浏览器离线存储概述.md +++ b/04. 浏览器的离线存储概述/浏览器离线存储概述.md @@ -50,4 +50,4 @@ --*EOF*- \ No newline at end of file +-*EOF*- diff --git a/05. WebSQL/WebSQL.md b/05. WebSQL/WebSQL.md index 8a171a4..e10cf05 100644 --- a/05. WebSQL/WebSQL.md +++ b/05. WebSQL/WebSQL.md @@ -220,4 +220,4 @@ db.transaction(function (tx) { --*EOF*- \ No newline at end of file +-*EOF*- diff --git a/06. IndexedDB/IndexedDB.md b/06. IndexedDB/IndexedDB.md index 32866f8..2fd29ba 100644 --- a/06. IndexedDB/IndexedDB.md +++ b/06. IndexedDB/IndexedDB.md @@ -881,4 +881,4 @@ openDB('stuDB', 1) --*EOF*- \ No newline at end of file +-*EOF*- diff --git a/06. IndexedDB/IndexedDB课堂代码/db.js b/06. IndexedDB/IndexedDB课堂代码/db.js index aaafcdf..079dc65 100644 --- a/06. IndexedDB/IndexedDB课堂代码/db.js +++ b/06. IndexedDB/IndexedDB课堂代码/db.js @@ -327,4 +327,4 @@ function deleteDB(db, storeName, id) { } } }) - } \ No newline at end of file + } diff --git a/06. IndexedDB/IndexedDB课堂代码/index.html b/06. IndexedDB/IndexedDB课堂代码/index.html index b0a6e39..964f5b7 100644 --- a/06. IndexedDB/IndexedDB课堂代码/index.html +++ b/06. IndexedDB/IndexedDB课堂代码/index.html @@ -60,4 +60,4 @@ - \ No newline at end of file + diff --git a/07. File API/File API.md b/07. File API/File API.md index a0162a2..99cfcce 100644 --- a/07. File API/File API.md +++ b/07. File API/File API.md @@ -396,4 +396,4 @@ file.onchange = function () { ------- --*EOF*- \ No newline at end of file +-*EOF*- diff --git a/07. File API/File API课堂代码/index.html b/07. File API/File API课堂代码/index.html index 049dfc9..400f006 100644 --- a/07. File API/File API课堂代码/index.html +++ b/07. File API/File API课堂代码/index.html @@ -69,4 +69,4 @@ - \ No newline at end of file + diff --git a/08. 浏览器的缓存/浏览器缓存.md b/08. 浏览器的缓存/浏览器缓存.md index 2647e00..2ee91b8 100644 --- a/08. 浏览器的缓存/浏览器缓存.md +++ b/08. 浏览器的缓存/浏览器缓存.md @@ -481,3 +481,4 @@ Cache-Control: max-age=31536000 -*EOF*- + diff --git a/08. 浏览器的缓存/浏览器缓存Demo/server.js b/08. 浏览器的缓存/浏览器缓存Demo/server.js index 98ace68..7745a11 100644 --- a/08. 浏览器的缓存/浏览器缓存Demo/server.js +++ b/08. 浏览器的缓存/浏览器缓存Demo/server.js @@ -34,4 +34,4 @@ http.createServer(function (req, res) { }); }).listen(3000, function () { console.log("服务器已启动,监听 3000 端口..."); -}) \ No newline at end of file +}) diff --git a/08. 浏览器的缓存/浏览器缓存Demo/static/css/index.css b/08. 浏览器的缓存/浏览器缓存Demo/static/css/index.css index 08daea3..27cf5fa 100644 --- a/08. 浏览器的缓存/浏览器缓存Demo/static/css/index.css +++ b/08. 浏览器的缓存/浏览器缓存Demo/static/css/index.css @@ -22,4 +22,4 @@ img:first-of-type{ img:last-of-type{ float: right; -} \ No newline at end of file +} diff --git a/08. 浏览器的缓存/浏览器缓存Demo/static/html/index.html b/08. 浏览器的缓存/浏览器缓存Demo/static/html/index.html index 6a81aa2..2bd919f 100644 --- a/08. 浏览器的缓存/浏览器缓存Demo/static/html/index.html +++ b/08. 浏览器的缓存/浏览器缓存Demo/static/html/index.html @@ -26,4 +26,4 @@ - \ No newline at end of file + diff --git a/08. 浏览器的缓存/浏览器缓存Demo/static/js/index.js b/08. 浏览器的缓存/浏览器缓存Demo/static/js/index.js index 67abdd0..3fa2693 100644 --- a/08. 浏览器的缓存/浏览器缓存Demo/static/js/index.js +++ b/08. 浏览器的缓存/浏览器缓存Demo/static/js/index.js @@ -2,4 +2,4 @@ const h1 = document.querySelector("h1"); h1.onclick = function(){ window.alert("这是一个标题"); -} \ No newline at end of file +} diff --git a/09. 跨标签页通信概述/跨标签页通信.md b/09. 跨标签页通信概述/跨标签页通信.md index 0218c15..548ddf6 100644 --- a/09. 跨标签页通信概述/跨标签页通信.md +++ b/09. 跨标签页通信概述/跨标签页通信.md @@ -659,4 +659,4 @@ console.log("服务器已启动..."); } -``` \ No newline at end of file +``` diff --git a/10. BroadCast实现跨标签页通信/课堂代码/index.html b/10. BroadCast实现跨标签页通信/课堂代码/index.html index 50c47f0..256b53f 100644 --- a/10. BroadCast实现跨标签页通信/课堂代码/index.html +++ b/10. BroadCast实现跨标签页通信/课堂代码/index.html @@ -23,4 +23,4 @@ } - \ No newline at end of file + diff --git a/10. BroadCast实现跨标签页通信/课堂代码/index2.html b/10. BroadCast实现跨标签页通信/课堂代码/index2.html index 20b0405..f8264c3 100644 --- a/10. BroadCast实现跨标签页通信/课堂代码/index2.html +++ b/10. BroadCast实现跨标签页通信/课堂代码/index2.html @@ -19,4 +19,4 @@ - \ No newline at end of file + diff --git a/11. ServiceWorker实现跨标签页通信/课堂代码/index.html b/11. ServiceWorker实现跨标签页通信/课堂代码/index.html index 733f01c..df3aa45 100644 --- a/11. ServiceWorker实现跨标签页通信/课堂代码/index.html +++ b/11. ServiceWorker实现跨标签页通信/课堂代码/index.html @@ -28,4 +28,4 @@ - \ No newline at end of file + diff --git a/11. ServiceWorker实现跨标签页通信/课堂代码/index2.html b/11. ServiceWorker实现跨标签页通信/课堂代码/index2.html index 3e93383..0268b4b 100644 --- a/11. ServiceWorker实现跨标签页通信/课堂代码/index2.html +++ b/11. ServiceWorker实现跨标签页通信/课堂代码/index2.html @@ -18,4 +18,4 @@ } - \ No newline at end of file + diff --git a/11. ServiceWorker实现跨标签页通信/课堂代码/sw.js b/11. ServiceWorker实现跨标签页通信/课堂代码/sw.js index ee39b1d..facd9f2 100644 --- a/11. ServiceWorker实现跨标签页通信/课堂代码/sw.js +++ b/11. ServiceWorker实现跨标签页通信/课堂代码/sw.js @@ -5,4 +5,4 @@ self.addEventListener("message", async event=>{ clients.forEach(function(client){ client.postMessage(event.data.value); }) -}) \ No newline at end of file +}) diff --git a/12. storage实现跨标签页通信/课堂代码/index.html b/12. storage实现跨标签页通信/课堂代码/index.html index 9eb29f6..06efdaf 100644 --- a/12. storage实现跨标签页通信/课堂代码/index.html +++ b/12. storage实现跨标签页通信/课堂代码/index.html @@ -16,4 +16,4 @@ - \ No newline at end of file + diff --git a/12. storage实现跨标签页通信/课堂代码/index2.html b/12. storage实现跨标签页通信/课堂代码/index2.html index 22a374b..6f73838 100644 --- a/12. storage实现跨标签页通信/课堂代码/index2.html +++ b/12. storage实现跨标签页通信/课堂代码/index2.html @@ -20,4 +20,4 @@ - \ No newline at end of file + diff --git a/13. SharedWorker实现跨标签页通信/课堂代码/index.html b/13. SharedWorker实现跨标签页通信/课堂代码/index.html index 9cb0afb..0fa1026 100644 --- a/13. SharedWorker实现跨标签页通信/课堂代码/index.html +++ b/13. SharedWorker实现跨标签页通信/课堂代码/index.html @@ -24,4 +24,4 @@ - \ No newline at end of file + diff --git a/13. SharedWorker实现跨标签页通信/课堂代码/index2.html b/13. SharedWorker实现跨标签页通信/课堂代码/index2.html index e275f93..b369061 100644 --- a/13. SharedWorker实现跨标签页通信/课堂代码/index2.html +++ b/13. SharedWorker实现跨标签页通信/课堂代码/index2.html @@ -23,4 +23,4 @@ - \ No newline at end of file + diff --git a/13. SharedWorker实现跨标签页通信/课堂代码/worker.js b/13. SharedWorker实现跨标签页通信/课堂代码/worker.js index f0751a0..aa894f9 100644 --- a/13. SharedWorker实现跨标签页通信/课堂代码/worker.js +++ b/13. SharedWorker实现跨标签页通信/课堂代码/worker.js @@ -12,4 +12,4 @@ onconnect = function (e) { } } -} \ No newline at end of file +} diff --git a/14. IndexedDB实现跨标签页通信/课堂代码/db.js b/14. IndexedDB实现跨标签页通信/课堂代码/db.js index a9c3251..e820537 100644 --- a/14. IndexedDB实现跨标签页通信/课堂代码/db.js +++ b/14. IndexedDB实现跨标签页通信/课堂代码/db.js @@ -84,4 +84,4 @@ function getDataByKey(db, storeName, key) { resolve(request.result); }; }); -} \ No newline at end of file +} diff --git a/14. IndexedDB实现跨标签页通信/课堂代码/index.html b/14. IndexedDB实现跨标签页通信/课堂代码/index.html index 0eb0725..5539a46 100644 --- a/14. IndexedDB实现跨标签页通信/课堂代码/index.html +++ b/14. IndexedDB实现跨标签页通信/课堂代码/index.html @@ -43,4 +43,4 @@ - \ No newline at end of file + diff --git a/14. IndexedDB实现跨标签页通信/课堂代码/index2.html b/14. IndexedDB实现跨标签页通信/课堂代码/index2.html index 294bfbf..7efd7a0 100644 --- a/14. IndexedDB实现跨标签页通信/课堂代码/index2.html +++ b/14. IndexedDB实现跨标签页通信/课堂代码/index2.html @@ -77,4 +77,4 @@ - \ No newline at end of file + diff --git a/15. cookie实现跨标签页通信/课堂代码/index.html b/15. cookie实现跨标签页通信/课堂代码/index.html index 41c576e..83a0953 100644 --- a/15. cookie实现跨标签页通信/课堂代码/index.html +++ b/15. cookie实现跨标签页通信/课堂代码/index.html @@ -16,4 +16,4 @@ - \ No newline at end of file + diff --git a/15. cookie实现跨标签页通信/课堂代码/index2.html b/15. cookie实现跨标签页通信/课堂代码/index2.html index a738890..839202c 100644 --- a/15. cookie实现跨标签页通信/课堂代码/index2.html +++ b/15. cookie实现跨标签页通信/课堂代码/index2.html @@ -21,4 +21,4 @@ - \ No newline at end of file + diff --git a/16. postMessage实现跨标签页通信/课堂代码/index.html b/16. postMessage实现跨标签页通信/课堂代码/index.html index b7663b4..0e2d8bf 100644 --- a/16. postMessage实现跨标签页通信/课堂代码/index.html +++ b/16. postMessage实现跨标签页通信/课堂代码/index.html @@ -31,4 +31,4 @@ - \ No newline at end of file + diff --git a/16. postMessage实现跨标签页通信/课堂代码/index2.html b/16. postMessage实现跨标签页通信/课堂代码/index2.html index d0b2a66..353a69e 100644 --- a/16. postMessage实现跨标签页通信/课堂代码/index2.html +++ b/16. postMessage实现跨标签页通信/课堂代码/index2.html @@ -17,4 +17,4 @@ - \ No newline at end of file + diff --git a/17. Websocket实现跨标签页通信/课堂代码/index.html b/17. Websocket实现跨标签页通信/课堂代码/index.html index 84926f2..f6ded66 100644 --- a/17. Websocket实现跨标签页通信/课堂代码/index.html +++ b/17. Websocket实现跨标签页通信/课堂代码/index.html @@ -26,4 +26,4 @@ } - \ No newline at end of file + diff --git a/17. Websocket实现跨标签页通信/课堂代码/index2.html b/17. Websocket实现跨标签页通信/课堂代码/index2.html index 6711a58..e42d86f 100644 --- a/17. Websocket实现跨标签页通信/课堂代码/index2.html +++ b/17. Websocket实现跨标签页通信/课堂代码/index2.html @@ -29,4 +29,4 @@ - \ No newline at end of file + diff --git a/17. Websocket实现跨标签页通信/课堂代码/server.js b/17. Websocket实现跨标签页通信/课堂代码/server.js index 77dbe75..af36f65 100644 --- a/17. Websocket实现跨标签页通信/课堂代码/server.js +++ b/17. Websocket实现跨标签页通信/课堂代码/server.js @@ -35,4 +35,4 @@ wss.on("connection", function(client){ }) }) -console.log("Web Socket 服务器已经启动...."); \ No newline at end of file +console.log("Web Socket 服务器已经启动...."); diff --git a/18. Web Worker/web worker.md b/18. Web Worker/web worker.md index ba9d5e0..b5ac092 100644 --- a/18. Web Worker/web worker.md +++ b/18. Web Worker/web worker.md @@ -253,4 +253,4 @@ onconnect = function (e) { ------- --*EOF*- \ No newline at end of file +-*EOF*- diff --git a/18. Web Worker/web worker课堂代码/index.html b/18. Web Worker/web worker课堂代码/index.html index 5f8e1f1..72ae4e2 100644 --- a/18. Web Worker/web worker课堂代码/index.html +++ b/18. Web Worker/web worker课堂代码/index.html @@ -29,4 +29,4 @@ - \ No newline at end of file + diff --git a/18. Web Worker/web worker课堂代码/worker.js b/18. Web Worker/web worker课堂代码/worker.js index 1f5cc22..b9656a4 100644 --- a/18. Web Worker/web worker课堂代码/worker.js +++ b/18. Web Worker/web worker课堂代码/worker.js @@ -2,4 +2,4 @@ let count = 0; setInterval(function(){ count++; postMessage(count); -}, 1000); \ No newline at end of file +}, 1000); diff --git a/浏览器面试题汇总.md b/浏览器面试题汇总.md index 6522fcf..58ed1ec 100644 --- a/浏览器面试题汇总.md +++ b/浏览器面试题汇总.md @@ -288,3 +288,4 @@ > - window.open window.postMessage > - Websocket + diff --git a/浏览器面试题汇总(无答案版).md b/浏览器面试题汇总(无答案版).md index 4044ba6..a1ad470 100644 --- a/浏览器面试题汇总(无答案版).md +++ b/浏览器面试题汇总(无答案版).md @@ -35,3 +35,4 @@ 18. 各个浏览器兼容前缀? 19. 跨标签页的通讯方式有哪些(哔哩哔哩) +