摘要: google浏览器右击属性点开,在目标后面添加空格后加入 --disable-web-security --user-data-dir="D:\lynn\data" --disable-site-isolation-trial 阅读全文
posted @ 2021-06-24 09:49 燕子fly 阅读(39) 评论(0) 推荐(0) 编辑
摘要: const { addWebpackAlias, override, removeModuleScopePlugin, addLessLoader, fixBabelImports, adjustStyleLoaders, } = require('customize-cra'); console. 阅读全文
posted @ 2021-01-04 16:39 燕子fly 阅读(1105) 评论(0) 推荐(0) 编辑
摘要: 1.npx create-react-app [project-name] 2.src下只保留app.js和index.js 3.选择性在pubilc/index里加入boostrap 去bootcdn下搜boostrap 选twitter boostrap.min.css 4.加入redux 在s 阅读全文
posted @ 2020-12-23 17:43 燕子fly 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 取消按钮:resetfields() 阅读全文
posted @ 2020-08-25 13:19 燕子fly 阅读(202) 评论(0) 推荐(0) 编辑
摘要: const transformString = (s) => { const res = s.charAt(0).toLowerCase().concat(s.slice(1)).replace(/\s+/g, ''); return res; }; 阅读全文
posted @ 2020-08-13 15:42 燕子fly 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Unexpected end of JSON input while parsing near错误解决办法 运行 npm cache clean --force。 阅读全文
posted @ 2020-06-06 07:42 燕子fly 阅读(67) 评论(0) 推荐(0) 编辑
摘要: /* 小写字母*/ export function validateLowerCase(str) { const reg = /^[a-z]+$/ return reg.test(str) } /* 大写字母*/ export function validateUpperCase(str) { co 阅读全文
posted @ 2020-04-10 09:34 燕子fly 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 一级路由:container: { login, // register, main } 配置antdesign 引入redux npm i --save react-redux redux-thunk 首先创建reducer.js store.js actions.js action-types. 阅读全文
posted @ 2020-03-19 17:44 燕子fly 阅读(247) 评论(0) 推荐(0) 编辑
摘要: { "React Class": { "scope": "javascript,typescript", "prefix": "rnc", "body": [ "import React, { Component } from 'react'", "", "/**", "*", "* @ autho 阅读全文
posted @ 2020-03-19 09:29 燕子fly 阅读(916) 评论(0) 推荐(1) 编辑
摘要: ,最终 keybindings.json 文件如下// Place your key bindings in this file to override the defaults[ { "key": "alt+s", "command": "workbench.action.files.saveAl 阅读全文
posted @ 2020-03-19 09:16 燕子fly 阅读(1245) 评论(0) 推荐(0) 编辑