会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
CLM1010
博客园
首页
新随笔
联系
订阅
管理
2021年3月1日
深拷贝
摘要: <!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
阅读(52)
评论(0)
推荐(0)
2021年2月26日
JS-Web-API —— BOM常用的和知识点
摘要: <!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
阅读(55)
评论(0)
推荐(0)
JS-Web-API —— DOM增删改查
摘要: <!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
阅读(77)
评论(0)
推荐(0)
2021年2月25日
JS-Web-API —— DOM本质和DOM操作
摘要: DOM本质 浏览器把拿到的html代码,结构化一个浏览器能识别并且js可操作的一个模型。 DOM操作 (Document Object Model) 文档对象模型 attribute 是(html代码)文档标签的属性。 property 是基于JS的属性。
阅读全文
posted @ 2021-02-25 11:07 CLM1010
阅读(51)
评论(0)
推荐(0)
2018年3月3日
作用域和闭包——执行上下文
摘要: 执行上下文 范围:一段<script>或者一个函数 都会生成一个执行上下文 (一段<script>)全局:创建全局上下文,执行前,会先把变量定义、函数声明拿出来。 (函数)函数:创建函数上下文,执行前,会先把变量定义、函数声明、this、arguments 拿出来
阅读全文
posted @ 2018-03-03 15:44 CLM1010
阅读(161)
评论(0)
推荐(0)
2018年2月28日
原型链 — instanceof
摘要: //构造函数 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
阅读(140)
评论(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
阅读(111)
评论(0)
推荐(0)
2018年2月27日
原型规则总结
摘要: 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
阅读(302)
评论(0)
推荐(0)
2018年2月26日
使用typeof能得到的哪些类型
摘要: JS中使用typeof能得到的哪些类型 // 值类型 console.log(typeof undefined); // undefined 值类型 console.log(typeof ""); // string 值类型 console.log(typeof 123); // number 值类
阅读全文
posted @ 2018-02-26 17:18 CLM1010
阅读(1236)
评论(0)
推荐(0)
2018年1月18日
eslint 规则中文注释
摘要: "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
阅读(422)
评论(0)
推荐(0)
公告