上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: 一、bug原因 由于网络请求是异步操作,所以在渲染页面的时候,数据还没有过来,就可能会有下面的报错 <span> <img :src="commentInfo.user.avatar" alt="" class="avatar"> </span> 数据结构: 二、定义数据模板 提前定义好数据模板: 阅读全文
posted @ 2020-08-01 17:55 Wayhome' 阅读(5076) 评论(0) 推荐(0) 编辑
摘要: props: { commentInfo: { type: Array, default() { return []; } } }, //这里的type是一个数组,但是父传子时却传过来一个对象,所以报错 //把type和return改回Object即可 props: { commentInfo: { 阅读全文
posted @ 2020-08-01 16:24 Wayhome' 阅读(2230) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.cnblogs.com/zhurong/p/12786887.html 阅读全文
posted @ 2020-07-31 21:52 Wayhome' 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 链接:https://tholman.com/github-corners/ 阅读全文
posted @ 2020-07-31 17:41 Wayhome' 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 一、定制css 1.进入到设置-页面定制css代码 2.设置字体(看个人喜好),不同编辑器的类名可能不一样,亲测TinyMCE编辑器和Markdown编辑器有效 /*博客代码字体设置开始*/ .cnblogs-markdown pre,#cnblogs_post_body pre{ /*控制代码不换 阅读全文
posted @ 2020-07-31 12:21 Wayhome' 阅读(2411) 评论(0) 推荐(0) 编辑
摘要: //formatData.js //封装的formatDate函数 export function formatDate(date, fmt) { if (/(y+)/.test(fmt)) { fmt = fmt.replace(RegExp.$1, (date.getFullYear() + ' 阅读全文
posted @ 2020-07-30 20:29 Wayhome' 阅读(1409) 评论(1) 推荐(0) 编辑
摘要: 链接:https://www.jianshu.com/p/dee1fc22f6cb //vue组件 <template> <div class="detail"> <scroll class="content"> aaaa </scroll> </div> </template> <script>i 阅读全文
posted @ 2020-07-29 16:59 Wayhome' 阅读(766) 评论(0) 推荐(0) 编辑
摘要: //加入scoped,可以使样式只影响当前组件 <style lang="less" scoped> </style> 阅读全文
posted @ 2020-07-29 16:36 Wayhome' 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.cnblogs.com/chao202426/p/11541733.html 阅读全文
posted @ 2020-07-29 12:09 Wayhome' 阅读(202) 评论(0) 推荐(0) 编辑
摘要: //network文件夹下的detail.js文件 //export导出,constructor构造器里面可以放一些参数 1 export class Goods { 2 constructor(itemInfo, columns, services) { 3 this.title = itemIn 阅读全文
posted @ 2020-07-28 16:31 Wayhome' 阅读(569) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css