上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>html 表格导出Excel</title> </head> <body> <div > <button onclick="method('tableExcel 阅读全文
posted @ 2019-10-17 11:27 Tutao1995 阅读(386) 评论(0) 推荐(0) 编辑
摘要: // JavaScript Document // _ooOoo_ // o8888888o // 88" . "88 // (| -_- |) // O\ = /O // ____/` '\____ // . ' \\| |// `. // / \\||| : |||// \ // / _||||| -:- |||||- \ // | | \\\ - /// | | // | \_| ''\ / 阅读全文
posted @ 2019-10-17 10:36 Tutao1995 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.let.const.var 区别 const:声明后必须赋值 ,不存在变量提升,使用必须在声明之后 let:声明后用不用赋值影响不大,不存在变量提升,使用必须在声明之后 2.BFC Block Format Context 块级格式化上下文 它是页面中的一块渲染区域,有一套渲染规则,决定了其子元 阅读全文
posted @ 2019-10-14 10:10 Tutao1995 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-10-11 16:59 Tutao1995 阅读(102) 评论(0) 推荐(0) 编辑
摘要: //模拟实现 //步骤:1.将函数设为对象得属性 2.执行函数 3.删除函数 4.参数 5.null 6.返回值 Function.prototype.call2 = function(ctx){ //获取调用call得函数,用this可以获取 var ctx = ctx || window; ct 阅读全文
posted @ 2019-10-11 15:19 Tutao1995 阅读(116) 评论(0) 推荐(0) 编辑
摘要: //1.闭包概念:能够访问自身变量的函数 //2.自由变量:能够在函数中使用,但是不是该函数的局部变量的变量 //3.闭包 = 函数 + 函数能够访问的自由变量 //4.ecm 中闭包:即使创建他的上下文已经销毁,他任然存在;在代码中使用了自由变量。 举个栗子 var scope = 'global 阅读全文
posted @ 2019-10-11 14:41 Tutao1995 阅读(102) 评论(0) 推荐(0) 编辑
摘要: //1.构造函数创建对象 // prototype 每个函数都有一个prototype属性 //函数的prototype属性指向一个对象,该对象为调用该构造函数而创建的实例的原型 //即:Person.prototype 为 person的原型 // 原型:每一个js对象( null除外) 在创建的 阅读全文
posted @ 2019-10-11 14:24 Tutao1995 阅读(103) 评论(0) 推荐(0) 编辑
摘要: created () { this.$store.replaceState(Object.assign(this.$store.state,JSON.parse(localStorage.getItem("beforeunload")))); window.addEventListener('bef 阅读全文
posted @ 2019-10-09 13:48 Tutao1995 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 关闭:window.addEventListener('beforeunload',function(e){ dosomething }) 刷新: document.addEventListener('keydown',function(e){ disableF5(e) }) function di 阅读全文
posted @ 2019-10-09 13:44 Tutao1995 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1.upload: 文件校验: 文件md5 文件分片上传 每次上传通过slice(start,end) 分片上传 表格刷新滚动到顶部 表格搜索 1.监听input框 将对应的值赋给搜索的值 2. this.$emit('搜索) 路由返回 采用在路由跳转的时候传递history参数 history用来 阅读全文
posted @ 2019-09-29 15:36 Tutao1995 阅读(216) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页