会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yuesu
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
7
下一页
2019年6月5日
npm 命令参数--save,--save-dev,-g 的区别
摘要: 常用命令: 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
阅读(4577)
评论(0)
推荐(1)
2019年4月22日
歌词解析排序
摘要: 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
阅读(250)
评论(0)
推荐(1)
2019年4月19日
HTML和实体相互转换
摘要: // 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
阅读(640)
评论(0)
推荐(0)
2019年3月29日
面试题
摘要: 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
阅读(169)
评论(0)
推荐(0)
2019年3月28日
区分数据类型
摘要: 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
阅读(294)
评论(0)
推荐(0)
2019年3月27日
label应用-跳出多层循环
摘要: 一、label: switch,while,for和do语句允许有一个可选的前置标签(label),配合break语句使用。 二、应用 1.使用label跳出双循环 2.使用continue跳出单次循环 3.使用break跳出单层循环
阅读全文
posted @ 2019-03-27 15:52 yuesu
阅读(376)
评论(0)
推荐(0)
2019年3月18日
浏览器字体小于12px的解决方案
摘要: 1.通过transform:scale()进行缩放 2.效果图 字体大小是12px 字体大小是8px
阅读全文
posted @ 2019-03-18 17:35 yuesu
阅读(572)
评论(0)
推荐(0)
2019年3月15日
transform 多值先后执行顺序
摘要: 一、用例 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
阅读(988)
评论(0)
推荐(0)
2019年3月13日
css 清除浮动
摘要: 子标签使用了float时候,父标签的样式失效 解决方案一:clear: both 解决方案二:clearfix
阅读全文
posted @ 2019-03-13 21:16 yuesu
阅读(225)
评论(0)
推荐(0)
2019年3月12日
鼠标移动到图片,图片放大
摘要: 效果图如上 代码
阅读全文
posted @ 2019-03-12 18:04 yuesu
阅读(331)
评论(0)
推荐(0)
1
2
3
4
5
···
7
下一页
公告