上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: 1.设置table的ref为tableList 2.设置滚动至顶部 this.$refs.tableList.bodyWrapper.scrollTop =0; 3.设置滚动至底部 this.$refs.tableList.bodyWrapper.scrollTop =this.$refs.tabl 阅读全文
posted @ 2020-06-02 14:39 国服第一李师师 阅读(576) 评论(1) 推荐(0)
摘要: 恢复内容开始 //下载模板 export function down() { return request({ url: '/Goods/GoodsGoods/downloadTemplate', method: 'GET', responseType: 'blob' }) } 在我们的请求中设置请 阅读全文
posted @ 2020-05-22 18:22 国服第一李师师 阅读(185) 评论(0) 推荐(0)
摘要: 背景: 很多界面都有这个模块所以给他封装了公共组件,这个公共组件的 第一层功能是没有更多搜索功能的 也就是在leftSearch这个公共组件中写一个slot, 有更多搜索的功能其实就是需要写v-slot:moreContent,然后传进去foldTitle,我们拿到后定义下这个变量避免子组件改父组件 阅读全文
posted @ 2020-05-20 17:05 国服第一李师师 阅读(237) 评论(1) 推荐(0)
摘要: obtainTime(){ let date = new Date(); let time = '' time+=date.getFullYear()+'-' time+=(date.getMonth()+1)>=10 ? (date.getMonth()+1) : '0'+(date.getMon 阅读全文
posted @ 2020-04-16 22:19 国服第一李师师 阅读(141) 评论(0) 推荐(0)
摘要: const express = require('express'); const app = express()先介绍一个中间件开发中经常碰到跨域问题 cors,通过use来使用中间件 const cors = require('cors'); app.use(cors()) 那我我们正常去使用j 阅读全文
posted @ 2020-04-09 14:00 国服第一李师师 阅读(112) 评论(0) 推荐(0)
摘要: redux工作流成: 在组建里通过dispatch触发action,reducer将产生新的state,通过createStore将reducer进行包裹,然后注册监听subscribe,创造的store对象能触发action,接受reducer传过来的新的state 阅读全文
posted @ 2020-04-06 11:49 国服第一李师师 阅读(188) 评论(0) 推荐(0)
摘要: 协商缓存 (没有强缓存或者强缓存过期) 协商缓存是浏览器判断资源是否可用,所以需要两个标识,reponse header 响应头带上某个字段(Last-Modified或者Etag),request header(If-Modified-Since或者If-None-Match) Last-modi 阅读全文
posted @ 2020-03-25 19:45 国服第一李师师 阅读(148) 评论(0) 推荐(0)
摘要: 区别: 1. vuex的同步异步方式不一样, view——>commit——>mutations——>state变化——>view变化(同步操作) view——>dispatch——>actions——>mutations——>state变化——>view变化(异步操作) redux的同步异步方式一 阅读全文
posted @ 2020-03-22 17:00 国服第一李师师 阅读(1019) 评论(0) 推荐(0)
摘要: // const express = require('express') // const app = express() // app.get('/',function(req,res){ // res.end('我是根目录') // }) // app.get('/good',function 阅读全文
posted @ 2020-03-21 18:31 国服第一李师师 阅读(174) 评论(0) 推荐(0)
摘要: 我们对于掌握promise的写法有好多种,就和业务的实现方式是一样的,当然每个人对于这个东西的理解也有所不同。但只要你是对的,符合promiseA+规范,相信别人是可以看懂的。写promise源码很重要的一点是要有全局观,大局观。这个是什么意思呢,分享一个我自己的故事,我接触promise源码已经有 阅读全文
posted @ 2020-03-20 11:25 国服第一李师师 阅读(152) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页