上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: 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)
摘要: ```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)
摘要: 题目 代码 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)
该文被密码保护。 阅读全文
posted @ 2020-01-10 10:10 ฅ˙-˙ฅ 阅读(1) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-01-07 16:44 ฅ˙-˙ฅ 阅读(1) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-01-07 16:43 ฅ˙-˙ฅ 阅读(2) 评论(0) 推荐(0)
摘要: 1. 安装 2. 使用 阅读全文
posted @ 2019-12-26 10:35 ฅ˙-˙ฅ 阅读(452) 评论(0) 推荐(0)
摘要: 1. vscode下载eslint插件 2. vscode进行设置 找到settings.json 在里面写入如下内容进行保存 这样,以后保存文件的时候会根据eslint配置的规则,自动修复一些不合规的代码,不用每次保存完手动运行yarn run link去修复了。 阅读全文
posted @ 2019-12-25 15:46 ฅ˙-˙ฅ 阅读(1476) 评论(0) 推荐(0)
摘要: 定义: 生命周期函数指在某一个时刻组件会自动调用执行的函数 阅读全文
posted @ 2019-12-19 14:48 ฅ˙-˙ฅ 阅读(168) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页