2018年7月9日

vue-cli 配置 proxyTable pathRewrite

摘要: vue-config-index.js中,proxyTable中的pathRewrite有什么用呢? 首先,在ProxyTable模块中设置了‘/api’,target中设置服务器地址,也就是接口的开头那段地址,例如‘172.0.0.1’,然后我们在调用接口的时候,就可以全局使用‘/api’,这时候 阅读全文

posted @ 2018-07-09 16:41 王子乔 阅读(28035) 评论(2) 推荐(2)

js获取当前时间是本年的第几天第几周

摘要: let d1 = new Date() let d2 = new Date() d2.setMonth(0) d2.setDate(1) let rq = d1-d2 let s1 = Math.ceil(rq/(24*60*60*1000)) let s2 = Math.ceil(s1/7) co 阅读全文

posted @ 2018-07-09 09:58 王子乔 阅读(828) 评论(0) 推荐(0)

导航