10 2019 档案

摘要:const getDate = function(date) { const hours = date.getHours(); const minutes = date.getMinutes(); const seconds = date.getSeconds(); const h = hours > 9 ? hours : "0" + hours; const m = minutes > 9 ? 阅读全文

posted @ 2019-10-17 15:25 KyleLjc 阅读(321) 评论(0) 推荐(0)

摘要:aop - 切面编程,主要用于执行一些与业务不相关的操作。 比如上报数据、日志输出等与业务不强相关的操作,把这些非业务操作与业务流程解耦。 还有其它使用情况,比如有一个通用弹层,打开弹层和关闭弹层都有一些操作,比如打开弹层需要把body的颜色变成灰色,然后关闭弹层需要把颜色还原等这样的操作。正常的解 阅读全文

posted @ 2019-10-12 10:20 KyleLjc 阅读(490) 评论(0) 推荐(0)

摘要:Vue.filter('removeHtml', input => { return input && input.replace(/<(?:.|\n)*?>/gm, '') .replace(/(&rdquo;)/g, '\"') .replace(/&ldquo;/g, '\"') .repla 阅读全文

posted @ 2019-10-09 21:54 KyleLjc 阅读(4894) 评论(0) 推荐(0)

摘要:Vetur -- Vue开发的时候强大的工具 TSLint -- typescript的格式检查 Prettier -- 强制格式化工具 .prettierrc.js 这里如果不存在.prettierrc.js会依次使用 .editorconfig , settings.json https://p 阅读全文

posted @ 2019-10-09 20:05 KyleLjc 阅读(251) 评论(0) 推荐(0)

摘要:1、eggjs官网: https://eggjs.org/zh-cn/tutorials/index.html 2、egg + vue 工程化解决方案,包括ssr: https://www.yuque.com/easy-team/egg-vue 阅读全文

posted @ 2019-10-09 14:37 KyleLjc 阅读(880) 评论(0) 推荐(0)

导航