2020年5月9日

摘要: useEffect: https://blog.csdn.net/sofeware333/article/details/105943747 https://www.jianshu.com/p/6e525c3686ab React Context const {Provider, Consumer} 阅读全文

posted @ 2020-05-09 15:36 博客sl 阅读(274) 评论(0) 推荐(0) 编辑

2020年5月7日

摘要: 解决方法1: --disable-web-security,我们在目标中添加上这一句就可以了记得中间有一个空格,然后关上浏览器,重新手动打开输入地址,(我的是本地文件html直接拖放进入,不要使用dw快捷F12打开,第一次无效,我也不知道为什么)问题解决 (具体可参照图片附1), 阅读全文

posted @ 2020-05-07 17:11 博客sl 阅读(1074) 评论(0) 推荐(0) 编辑

摘要: 使用说明 import GGEditor, { Flow } from 'gg-editor'; <GGEditor> <Flow /> </GGEditor> API 属性说明类型默认值 data 初始数据 object - graph 图配置项,参考 G6 Graph API object - 阅读全文

posted @ 2020-05-07 11:15 博客sl 阅读(2008) 评论(0) 推荐(0) 编辑

2020年5月5日

摘要: cnblogs.com/hubyq/p/11265534.html http://ggeditor.com/ GGEditor - Flow的简单使用 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 阅读全文

posted @ 2020-05-05 23:14 博客sl 阅读(1512) 评论(0) 推荐(0) 编辑

2020年4月26日

摘要: history路由404配置 后端配置: https://router.vuejs.org/zh/guide/essentials/history-mode.html#%E5%90%8E%E7%AB%AF%E9%85%8D%E7%BD%AE%E4%BE%8B%E5%AD%90 一、前端配置: ①、r 阅读全文

posted @ 2020-04-26 22:13 博客sl 阅读(1596) 评论(0) 推荐(0) 编辑

2020年4月25日

摘要: axios 全局配置: //axios-init.js import axios from 'axios'; let loadingInstance; //创建Loading 的实例 axios.defaults.baseURL = appConfig.xhr.baseURL; // 配置axios 阅读全文

posted @ 2020-04-25 13:53 博客sl 阅读(203) 评论(0) 推荐(0) 编辑

2020年4月23日

摘要: 1. 图片优化 首先是UI设计师对图片进行一次压缩,到了前端工程师手上再进行一次压缩,推荐网站https://tinypng.com/。本人使用的技术栈时VUE和webpack,代码压缩在webpack中可以配置,不再详述。 2. webpack打包优化 如果按照vue-cli的正常配置进行打包,打 阅读全文

posted @ 2020-04-23 21:28 博客sl 阅读(397) 评论(0) 推荐(0) 编辑

2020年4月21日

摘要: 前端设置http缓存,前端设置html页面缓存方法:静态的html页面想要设置使用缓存需要通过HTTP的META设置expires和cache-control 设置如下网页元信息: <meta http-equiv="Cache-Control" content="max-age=7200" /> 阅读全文

posted @ 2020-04-21 20:44 博客sl 阅读(553) 评论(0) 推荐(0) 编辑

2020年4月20日

摘要: 去重: 1,arr.splice var arr = [1,23,1,1,1,3,23,5,6,7,9,9,8,5,5,5,5]; function norepeat(arr) { var arr = [1,23,1,1,1,3,23,5,6,7,9,9,8,5,5,5,5]; function n 阅读全文

posted @ 2020-04-20 20:39 博客sl 阅读(4824) 评论(0) 推荐(0) 编辑

2020年4月19日

摘要: 1,ios系统中元素被触摸时产生的半透明灰色遮罩怎么去掉 ios用户点击一个链接,会出现一个半透明灰色遮罩, 如果想要禁用,可设置-webkit-tap-highlight-color的alpha值为0,也就是属性值的最后一位设置为0就可以去除半透明灰色遮罩 a,button,input,texta 阅读全文

posted @ 2020-04-19 20:49 博客sl 阅读(121) 评论(0) 推荐(0) 编辑