上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 63 下一页
摘要: ①安装插件 此时右击会有: ②anywhere 阅读全文
posted @ 2019-12-06 11:37 吴小明- 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 富文本的原理: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta ht 阅读全文
posted @ 2019-12-03 15:40 吴小明- 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 原生js拖拽: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta ht 阅读全文
posted @ 2019-12-03 15:34 吴小明- 阅读(431) 评论(0) 推荐(0) 编辑
摘要: // ① 当函数中没有this时,call()、apply()和直接执行没有区别 function fn(){ console.log("aaa") } fn() // aaa fn.call() // aaa fn是函数,函数也是对象,对象调用call()方法 fn.apply() // aaa 阅读全文
posted @ 2019-11-26 21:41 吴小明- 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 什么是继承? A对象通过继承B对象,就可以拥有B对象的所有属性和方法。 原型链继承: 子类的原型是父类的实例,子类继承父类的所有私有属性、私有方法和其原型上的属性和方法。 // 定义父类Person function Person(name,age){ this.name=name; this.ag 阅读全文
posted @ 2019-11-26 17:24 吴小明- 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 网页禁止复制并且右键失效: 第一种方法: <script> document.oncontextmenu=new Function("event.returnValue=false"); document.onselectstart=new Function("event.returnValue=f 阅读全文
posted @ 2019-11-23 21:56 吴小明- 阅读(1510) 评论(0) 推荐(0) 编辑
摘要: 概念理解: 数组的解构赋值 对象的解构赋值 字符串的解构赋值 数值和布尔值的解构赋值 函数参数的解构赋值 数组的解构赋值: 一般的: const arr=[1,2,3,4]; let [a,b,c,d]=arr; console.log(a,b,c,d) // 1 2 3 4 复杂点的: const 阅读全文
posted @ 2019-11-23 20:39 吴小明- 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-23 14:45 吴小明- 阅读(201) 评论(0) 推荐(0) 编辑
摘要: //通过id名称获取元素对象 function getid(idName){ return document.getElementById(idName); } //随机获取min-max的随机整数 function getRand(min,max){ return parseInt(Math.ra 阅读全文
posted @ 2019-11-21 21:20 吴小明- 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 需求:在1秒内,由一个颜色变到另一个颜色,不是1秒后再变色。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initi 阅读全文
posted @ 2019-11-21 20:06 吴小明- 阅读(875) 评论(0) 推荐(0) 编辑
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 63 下一页