随笔分类 -  vue

vue
摘要:node-sass安装失败,提示如下: gyp verb check python checking for Python executable "python" in the PATH gyp verb `which` succeeded python D:\Program Files\Pytho 阅读全文
posted @ 2021-10-19 10:59 Samuel-Leung 阅读(5003) 评论(0) 推荐(1) 编辑
摘要:import Vue from 'vue' import Router from 'vue-router' import goodinfo from '../components/goodinfo' import detail from '../components/goodinfodetails/ 阅读全文
posted @ 2021-08-10 17:41 Samuel-Leung 阅读(667) 评论(0) 推荐(0) 编辑
摘要:参考: https://blog.csdn.net/xiaolinlife/article/details/89517928 beforeRouteLeave (to, from, next){ if(to.name =="moreDishes" || to.name =="cashCouponDe 阅读全文
posted @ 2021-07-20 11:42 Samuel-Leung 阅读(91) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.jianshu.com/p/8cedd68d30ad 阅读全文
posted @ 2021-03-06 17:41 Samuel-Leung 阅读(1292) 评论(0) 推荐(0) 编辑
摘要:参考: https://blog.csdn.net/weixin_45616142/article/details/108112932?utm_medium=distribute.pc_relevant.none-task-blog-searchFromBaidu-1.control&depth_1 阅读全文
posted @ 2021-01-27 15:48 Samuel-Leung 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-01-20 15:27 Samuel-Leung 阅读(343) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/linjiangxian/p/13183412.html https://www.cnblogs.com/kunmomo/p/13573197.html 阅读全文
posted @ 2021-01-19 13:56 Samuel-Leung 阅读(456) 评论(0) 推荐(0) 编辑
摘要:const proxy = require('http-proxy-middleware'); module.exports = { devServer:{ host: 'localhost',//target host port: 8080, //proxy:{'/api':{}},代理器中设置/ 阅读全文
posted @ 2021-01-14 13:54 Samuel-Leung 阅读(5505) 评论(0) 推荐(0) 编辑
摘要:.shift(); 删除第一个 .pop(); 删除最后一个 for(let i=0;i<this.clickArr.length;i++){ if(this.clickArr[i].id == this.clickObj.id && this.clickArr[i].date == this.cl 阅读全文
posted @ 2020-08-24 13:08 Samuel-Leung 阅读(3632) 评论(0) 推荐(0) 编辑
摘要:<template> <div>{{a|sum(that)}}</div> </template> <script> export default { name: "test", data() { return { that: this, a: 1, b: 2 } }, filters: { sum 阅读全文
posted @ 2020-07-07 11:01 Samuel-Leung 阅读(5640) 评论(0) 推荐(0) 编辑
摘要:let routeData = this.$router.resolve({ path: "/about", query: { name:'lei', age: 18, phoneNum:12345678901 } }); window.open(routeData.href, '_blank'); 阅读全文
posted @ 2020-05-28 13:27 Samuel-Leung 阅读(1120) 评论(0) 推荐(0) 编辑
摘要:javascript 数组 filter使用方法 filter()方法会创建一个新数组,原数组的每个元素传入回调函数中,回调函数中有return返回值,若返回值为true,这个元素保存到新数组中;若返回值为false,则该元素不保存到新数组中;原数组不发生改变。 和map类似,Array的filte 阅读全文
posted @ 2019-08-07 15:21 Samuel-Leung 阅读(1986) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/weixin_42795449/article/details/84112876 阅读全文
posted @ 2019-08-07 13:08 Samuel-Leung 阅读(285) 评论(0) 推荐(0) 编辑
摘要:官方文档:https://cn.vuejs.org/ 第一阶段: 基础篇 开篇一:HelloWorld <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>01_HelloWorld</title> </head 阅读全文
posted @ 2019-08-06 15:31 Samuel-Leung 阅读(164) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/wnxyz8023/p/11101771.html 阅读全文
posted @ 2019-06-28 12:32 Samuel-Leung 阅读(749) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示