posted @ 2020-05-09 15:36 博客sl 阅读(285) 评论(0) 推荐(0)
摘要:
useEffect: https://blog.csdn.net/sofeware333/article/details/105943747 https://www.jianshu.com/p/6e525c3686ab React Context const {Provider, Consumer} 阅读全文
摘要:
解决方法1: --disable-web-security,我们在目标中添加上这一句就可以了记得中间有一个空格,然后关上浏览器,重新手动打开输入地址,(我的是本地文件html直接拖放进入,不要使用dw快捷F12打开,第一次无效,我也不知道为什么)问题解决 (具体可参照图片附1), 阅读全文
posted @ 2020-05-07 17:11 博客sl 阅读(1181) 评论(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 阅读(2061) 评论(0) 推荐(0)
摘要:
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 阅读(1612) 评论(0) 推荐(0)
摘要:
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 阅读(1665) 评论(0) 推荐(0)
摘要:
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 阅读(225) 评论(0) 推荐(0)
摘要:
1. 图片优化 首先是UI设计师对图片进行一次压缩,到了前端工程师手上再进行一次压缩,推荐网站https://tinypng.com/。本人使用的技术栈时VUE和webpack,代码压缩在webpack中可以配置,不再详述。 2. webpack打包优化 如果按照vue-cli的正常配置进行打包,打 阅读全文
posted @ 2020-04-23 21:28 博客sl 阅读(413) 评论(0) 推荐(0)
摘要:
前端设置http缓存,前端设置html页面缓存方法:静态的html页面想要设置使用缓存需要通过HTTP的META设置expires和cache-control 设置如下网页元信息: <meta http-equiv="Cache-Control" content="max-age=7200" /> 阅读全文
posted @ 2020-04-21 20:44 博客sl 阅读(601) 评论(0) 推荐(0)
摘要:
去重: 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 阅读(4901) 评论(0) 推荐(0)
浙公网安备 33010602011771号