摘要:
google浏览器右击属性点开,在目标后面添加空格后加入 --disable-web-security --user-data-dir="D:\lynn\data" --disable-site-isolation-trial 阅读全文
摘要:
const { addWebpackAlias, override, removeModuleScopePlugin, addLessLoader, fixBabelImports, adjustStyleLoaders, } = require('customize-cra'); console. 阅读全文
摘要:
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 阅读全文
摘要:
取消按钮:resetfields() 阅读全文
摘要:
const transformString = (s) => { const res = s.charAt(0).toLowerCase().concat(s.slice(1)).replace(/\s+/g, ''); return res; }; 阅读全文
摘要:
Unexpected end of JSON input while parsing near错误解决办法 运行 npm cache clean --force。 阅读全文
摘要:
/* 小写字母*/ export function validateLowerCase(str) { const reg = /^[a-z]+$/ return reg.test(str) } /* 大写字母*/ export function validateUpperCase(str) { co 阅读全文
摘要:
一级路由:container: { login, // register, main } 配置antdesign 引入redux npm i --save react-redux redux-thunk 首先创建reducer.js store.js actions.js action-types. 阅读全文
摘要:
{ "React Class": { "scope": "javascript,typescript", "prefix": "rnc", "body": [ "import React, { Component } from 'react'", "", "/**", "*", "* @ autho 阅读全文
摘要:
,最终 keybindings.json 文件如下// Place your key bindings in this file to override the defaults[ { "key": "alt+s", "command": "workbench.action.files.saveAl 阅读全文