随笔分类 -  react

摘要:配置请求域名,有umirc.ts文件可以直接在该文件加 proxy: { '/api': { // 检测域名后面带 /api/ 的路径 target: 'http://192.168.0.90', // 要请求的域名或IP地址 'changeOrigin': true, // 'pathRewrit 阅读全文

posted @ 2023-05-05 11:14 博客sl 阅读(30) 评论(0) 推荐(0)

摘要:使用 16 版本后的 createRef()函数 class MyComponent extends React.Component<iProps, iState> { constructor(props) { super(props); this.inputRef = React.createRe 阅读全文

posted @ 2022-11-25 10:54 博客sl 阅读(46) 评论(0) 推荐(0)

摘要:function Counter() { const [count, setCount] = useState(0); useEffect(() => { setTimeout(() => { console.log(count) }, 3000) }) // 在3秒内快速点击5次按钮,控制台打出的 阅读全文

posted @ 2020-09-23 17:36 博客sl 阅读(331) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/sd19871122/article/details/97612107 https://blog.csdn.net/mmzzll2019/article/details/89348085?utm_medium=distribute.pc_relevant. 阅读全文

posted @ 2020-09-23 15:13 博客sl 阅读(2797) 评论(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 阅读(2062) 评论(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 阅读(1614) 评论(0) 推荐(0)