会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ฅ˙-˙ฅ
博客园
首页
管理
上一页
1
2
3
4
5
6
7
8
9
···
12
下一页
2020年3月4日
添加自定义字体
摘要: 1. 由ui提供后缀为.ttf的字体文件包 我这里命名为pmzd.ttf 2. 创建css文件引入字体文件包 我这里用的less, pmzd.less内容如下: 3. index.less中引入上一步的css文件pmzd.less(我这里所有样式通过index.less引入) 4. main.js中
阅读全文
posted @ 2020-03-04 10:25 ฅ˙-˙ฅ
阅读(759)
评论(0)
推荐(0)
2020年2月25日
时间格式化(自定义格式)
摘要: ```js / 时间格式化 @param { } value 时间 @param { } fmt 格式 使用举例: formatDate(new Date(), 'yyyy MM dd hh:mm:ss'); / export function formatDate(value, fmt) { if
阅读全文
posted @ 2020-02-25 14:39 ฅ˙-˙ฅ
阅读(246)
评论(0)
推荐(0)
深度克隆方法
摘要: ```jsexport function deepClone(source) { if (!source && typeof source !== 'object') { throw new Error('error arguments', 'shallowClone'); } const targetObj = source.constructor === Array ? [] : ...
阅读全文
posted @ 2020-02-25 14:35 ฅ˙-˙ฅ
阅读(134)
评论(0)
推荐(0)
2020年1月19日
LazyMan面试题
摘要: 题目 代码 js class Man { constructor(name) { this.actions = []; const hello = () = { console.log( ); this.next(); }; this.addAction(hello); setTimeout(()
阅读全文
posted @ 2020-01-19 10:53 ฅ˙-˙ฅ
阅读(168)
评论(0)
推荐(0)
2020年1月10日
前端h5实现拍照识别银行卡号
该文被密码保护。
阅读全文
posted @ 2020-01-10 10:10 ฅ˙-˙ฅ
阅读(1)
评论(0)
推荐(0)
2020年1月7日
验证码组件封装
该文被密码保护。
阅读全文
posted @ 2020-01-07 16:44 ฅ˙-˙ฅ
阅读(1)
评论(0)
推荐(0)
公共验证方法
该文被密码保护。
阅读全文
posted @ 2020-01-07 16:43 ฅ˙-˙ฅ
阅读(2)
评论(0)
推荐(0)
2019年12月26日
lodash.throttle实现节流
摘要: 1. 安装 2. 使用
阅读全文
posted @ 2019-12-26 10:35 ฅ˙-˙ฅ
阅读(452)
评论(0)
推荐(0)
2019年12月25日
vscode开发vue项目保存时自动执行lint进行修复
摘要: 1. vscode下载eslint插件 2. vscode进行设置 找到settings.json 在里面写入如下内容进行保存 这样,以后保存文件的时候会根据eslint配置的规则,自动修复一些不合规的代码,不用每次保存完手动运行yarn run link去修复了。
阅读全文
posted @ 2019-12-25 15:46 ฅ˙-˙ฅ
阅读(1476)
评论(0)
推荐(0)
2019年12月19日
React学习笔记-生命周期函数
摘要: 定义: 生命周期函数指在某一个时刻组件会自动调用执行的函数
阅读全文
posted @ 2019-12-19 14:48 ฅ˙-˙ฅ
阅读(168)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
12
下一页