摘要: 常用命令: npm init :创建package.json这个文件 npm run dev :执行npm script中的命令 常用命令: npm init :创建package.json这个文件 npm run dev :执行npm script中的命令 常用命令: npm init :创建pa 阅读全文
posted @ 2019-06-05 17:27 yuesu 阅读(4231) 评论(0) 推荐(1) 编辑
摘要: 1.解析歌词代码如下: let str=`[01:33.50]1111 [02:33.50]asas2222 [03:33.50]3333 [01:35.50][03:33.51] 44[]44 [01:36.50] [03:33.52] [03:33.56]55 55 [01:35.52] [03 阅读全文
posted @ 2019-04-22 14:25 yuesu 阅读(238) 评论(0) 推荐(1) 编辑
摘要: // HTML和实体相互转换 String.prototype.convertEntity=(function(){ // 字符实体表 let entity = { quot : '"', lt : '', amp : '&', nbsp : ' ' } let entity_cover_key='',entity_cover={}; for(let item in entity){ enti... 阅读全文
posted @ 2019-04-19 10:26 yuesu 阅读(615) 评论(0) 推荐(0) 编辑
摘要: 1.预编译 a=100; function demo(e){ arguments[0]=2; function e(){} console.log(e);//2 if(a){ var b=123; } a=10; var a; console.log(b);//undefined function 阅读全文
posted @ 2019-03-29 17:31 yuesu 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1.分两类 原始值,引用值,null单独处理 2.区分引用值 function typeFn(target){ if(target===null) return null; let template={ '[object Array]':'array', '[object Object]':'object', '[object N... 阅读全文
posted @ 2019-03-28 09:51 yuesu 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 一、label: switch,while,for和do语句允许有一个可选的前置标签(label),配合break语句使用。 二、应用 1.使用label跳出双循环 2.使用continue跳出单次循环 3.使用break跳出单层循环 阅读全文
posted @ 2019-03-27 15:52 yuesu 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1.通过transform:scale()进行缩放 2.效果图 字体大小是12px 字体大小是8px 阅读全文
posted @ 2019-03-18 17:35 yuesu 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 一、用例 1.先平移后旋转 .box{ width: 200px; height: 200px; background: red; animation: move 3s forwards; } @keyframes move{ 0%{ transform: translateX(0) rotate( 阅读全文
posted @ 2019-03-15 11:05 yuesu 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 子标签使用了float时候,父标签的样式失效 解决方案一:clear: both 解决方案二:clearfix 阅读全文
posted @ 2019-03-13 21:16 yuesu 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 效果图如上 代码 阅读全文
posted @ 2019-03-12 18:04 yuesu 阅读(314) 评论(0) 推荐(0) 编辑