摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2023-08-14 19:08 JackieDYH 阅读(27) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>当季热门</title> </head> <style type="text/css"> *{ margin: 0; padding: 0; } h3{ line-height: 阅读全文
posted @ 2023-08-14 15:50 JackieDYH 阅读(7) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>注册</title> <style type="text/css"> *{ margin: 0; padding: 0; } a{ text-decoration: none; } 阅读全文
posted @ 2023-08-14 15:50 JackieDYH 阅读(8) 评论(0) 推荐(0) 编辑
摘要: ajax定义 Ajax 即“Asynchronous Javascript And XML”(异步 JavaScript 和 XML),是指一种创建交互式网页应用的网页开发技术。(用来向后台数据库请求获取数据的技术) 传统的网页(不使用 Ajax)如果需要更新内容,必须重载整个网页页面。通过在后台与 阅读全文
posted @ 2023-08-14 11:28 JackieDYH 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 运行时长 00日 00时 17分 59秒 代码 function calculateRuntime(timestamp) { const startTime = Date.now(); // 获取当前时间戳 //const runtimeElement = document.getElementBy 阅读全文
posted @ 2023-08-14 09:47 JackieDYH 阅读(26) 评论(0) 推荐(0) 编辑
摘要: instanceof 运算符用于检测构造函数的 prototype 属性是否出现在某个实例对象的原型链上。 function Car(make, model, year) { this.make = make; this.model = model; this.year = year; } cons 阅读全文
posted @ 2023-08-13 11:52 JackieDYH 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1.vue 双向数据绑定是通过 数据劫持 结合 发布订阅模式的方式来实现的, 也就是说数据和视图同步,数据发生变化,视图跟着变化,视图变化,数据也随之发生改变; 2.核心:关于VUE双向数据绑定,其核心是 Object.defineProperty()方法; 3.介绍一下Object.defineP 阅读全文
posted @ 2023-08-13 11:52 JackieDYH 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 首先创造一个超类型的构造函数Super,他拥有自己的静态属性name,以及原型链方法getSuper。再创造一个子类构造函数Sub。下面我们将使用6种方法去分析如何让Sub继承Super,并讨论下各自的优劣。 1.原型链继承 function Super() { this.name = ["supe 阅读全文
posted @ 2023-08-12 09:45 JackieDYH 阅读(12) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script type="text/javascript"> // 生成100个p元素,隔行变色 window.onload = function(){ for 阅读全文
posted @ 2023-08-12 09:45 JackieDYH 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 源码 <!doctype html> <html> <head> <meta charset="utf-8"> <title></title> <style> @font-face { font-family: "font_wrl"; src: url(img/rtrxnfht.TTF); } @k 阅读全文
posted @ 2023-08-11 17:05 JackieDYH 阅读(50) 评论(0) 推荐(0) 编辑