摘要: <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" cont 阅读全文
posted @ 2021-03-01 15:41 CLM1010 阅读(46) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>BOM常用的和知识点</title> </head> <body> <s 阅读全文
posted @ 2021-02-26 15:13 CLM1010 阅读(42) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2021-02-26 09:31 CLM1010 阅读(50) 评论(0) 推荐(0) 编辑
摘要: DOM本质 浏览器把拿到的html代码,结构化一个浏览器能识别并且js可操作的一个模型。 DOM操作 (Document Object Model) 文档对象模型 attribute 是(html代码)文档标签的属性。 property 是基于JS的属性。 阅读全文
posted @ 2021-02-25 11:07 CLM1010 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 执行上下文 范围:一段<script>或者一个函数 都会生成一个执行上下文 (一段<script>)全局:创建全局上下文,执行前,会先把变量定义、函数声明拿出来。 (函数)函数:创建函数上下文,执行前,会先把变量定义、函数声明、this、arguments 拿出来 阅读全文
posted @ 2018-03-03 15:44 CLM1010 阅读(154) 评论(0) 推荐(0) 编辑
摘要: //构造函数 function Fn (name,age) { this.name = name; } //显示原型 Fn.prototype.alertName = function () { alert(this.name); } //创建实力 var f = new Fn('clm'); f. 阅读全文
posted @ 2018-02-28 16:46 CLM1010 阅读(130) 评论(0) 推荐(0) 编辑
摘要: //构造函数 function Fn (name,age){ this.name = name; } //显示原型 Fn.prototype.alertName = function(){ alert(this.name); } //创建实力 var f = new Fn('clm'); f.pri 阅读全文
posted @ 2018-02-28 15:34 CLM1010 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1、所有的引用类型(对象、数组、函数),都具有对象特性,既可以自由扩展属性(除了 null 以外) var obj = {}; obj.a = 100; var arr = []; arr.a = 100; function fn(){} fn.a = 100; 2、所有的引用类型(对象、数组、函数 阅读全文
posted @ 2018-02-27 14:12 CLM1010 阅读(293) 评论(0) 推荐(0) 编辑
摘要: JS中使用typeof能得到的哪些类型 // 值类型 console.log(typeof undefined); // undefined 值类型 console.log(typeof ""); // string 值类型 console.log(typeof 123); // number 值类 阅读全文
posted @ 2018-02-26 17:18 CLM1010 阅读(1215) 评论(0) 推荐(0) 编辑
摘要: "no-alert": 0,//禁止使用alert confirm prompt "no-array-constructor": 2,//禁止使用数组构造器 "no-bitwise": 0,//禁止使用按位运算符 "no-caller": 1,//禁止使用arguments.caller或argum 阅读全文
posted @ 2018-01-18 20:29 CLM1010 阅读(396) 评论(0) 推荐(0) 编辑