会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
燕子fly
博客园
首页
新随笔
联系
管理
订阅
2021年6月24日
google跨域
摘要: google浏览器右击属性点开,在目标后面添加空格后加入 --disable-web-security --user-data-dir="D:\lynn\data" --disable-site-isolation-trial
阅读全文
posted @ 2021-06-24 09:49 燕子fly
阅读(53)
评论(0)
推荐(0)
2021年1月4日
config-overrides
摘要: const { addWebpackAlias, override, removeModuleScopePlugin, addLessLoader, fixBabelImports, adjustStyleLoaders, } = require('customize-cra'); console.
阅读全文
posted @ 2021-01-04 16:39 燕子fly
阅读(1149)
评论(0)
推荐(0)
2020年12月23日
1创建项目
摘要: 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
阅读(61)
评论(0)
推荐(0)
2020年8月25日
表单保存取消按钮
摘要: 取消按钮:resetfields()
阅读全文
posted @ 2020-08-25 13:19 燕子fly
阅读(207)
评论(0)
推荐(0)
2020年8月13日
字符串去除空格且首字母转为大写
摘要: 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
阅读(264)
评论(0)
推荐(0)
2020年6月6日
npm 出现的一些错误
摘要: Unexpected end of JSON input while parsing near错误解决办法 运行 npm cache clean --force。
阅读全文
posted @ 2020-06-06 07:42 燕子fly
阅读(74)
评论(0)
推荐(0)
2020年4月10日
validate
摘要: /* 小写字母*/ export function validateLowerCase(str) { const reg = /^[a-z]+$/ return reg.test(str) } /* 大写字母*/ export function validateUpperCase(str) { co
阅读全文
posted @ 2020-04-10 09:34 燕子fly
阅读(832)
评论(0)
推荐(0)
2020年3月19日
路由布局 react-mobile
摘要: 一级路由: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
阅读(261)
评论(0)
推荐(0)
react代码片段rcc
摘要: { "React Class": { "scope": "javascript,typescript", "prefix": "rnc", "body": [ "import React, { Component } from 'react'", "", "/**", "*", "* @ autho
阅读全文
posted @ 2020-03-19 09:29 燕子fly
阅读(981)
评论(0)
推荐(1)
vscode快捷键设置
摘要: ,最终 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
阅读(1260)
评论(0)
推荐(0)
下一页
公告