摘要: template: js: css: 实现效果:图片可以左右滑动显示 阅读全文
posted @ 2019-09-30 16:12 指尖流年1218 阅读(2838) 评论(0) 推荐(0) 编辑
摘要: left: initial; 一开始就是初始(默认值)的意思,就可以解决定位的left啦 阅读全文
posted @ 2019-09-30 09:47 指尖流年1218 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 可以在聊天页面的created生命周期里面写如下代码,使得刷新后的页面和之前的是一样的 created(){ alert(11) //在页面加载时读取localStorage里的状态信息 localStorage.getItem("userMsg") && this.$store.replaceSt 阅读全文
posted @ 2019-09-19 11:00 指尖流年1218 阅读(654) 评论(0) 推荐(0) 编辑
摘要: 在设置好SSH之后,执行下面的操作即可完成: git init // 初始化git status //查看提交文件状态git remote add origin git地址 // 连接远程仓库 git push origin master //git add . // 提交到暂存区git commi 阅读全文
posted @ 2019-08-24 20:18 指尖流年1218 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 当跳转到新的html页面时,先判断checkbox是否选中,选中-->跳转到新页面;未选中--弹出提示消息(请先同意须知) HTML: js: 注:需要引入layer.css和layer.js两个文件 阅读全文
posted @ 2019-08-11 10:06 指尖流年1218 阅读(1920) 评论(0) 推荐(1) 编辑
摘要: 遇到了执行npm run build 后报错: [build:js ] Module not found: Error: Can't resolve 'scss-loader' in 'D:\works\works\H5-IM\im-h5\src\pages' 在webpack.config.js里 阅读全文
posted @ 2019-08-06 10:58 指尖流年1218 阅读(2986) 评论(0) 推荐(0) 编辑
摘要: 当设置底部footer的样式为: .footer{ position: fixed; height: 49px; bottom: 0; background: #fff; } 这样会挡住上面的内容,修改如下: 给body加个样式: body{ padding-bottom: 49px; //和设置f 阅读全文
posted @ 2019-08-06 10:26 指尖流年1218 阅读(466) 评论(0) 推荐(0) 编辑
摘要: vue里面使用v-for代码显示红色的波浪线,解决办法: before: <div v-for="tmsgs in msg.message"></div> after: <div v-for="(tmsgs,index) in msg.message" :key="index"> 就解决啦,但是不建 阅读全文
posted @ 2019-08-02 19:21 指尖流年1218 阅读(1744) 评论(1) 推荐(0) 编辑
摘要: /* 显示一行,省略号 */ white-space: nowrap; text-overflow: ellipsis; overflow: hidden; word-break: break-all; /* 显示两行,省略号 */ text-overflow: -o-ellipsis-lastli 阅读全文
posted @ 2019-07-19 19:34 指尖流年1218 阅读(124059) 评论(0) 推荐(4) 编辑
摘要: 正常使用rich-text是可以解决问题的,但是在支付宝小程序中不显示,在文档中看到“ 支付宝小程序 nodes 属性只支持使用 Array 类型。如果需要支持 HTML String,则需要自己将 HTML String转化为 nodes 数组,可使用 html-parser 转换。”这句话 结果 阅读全文
posted @ 2019-07-18 13:50 指尖流年1218 阅读(11371) 评论(0) 推荐(2) 编辑