- 博客(9)
- 收藏
- 关注
原创 修改npm镜像最好的办法
npm install -g nrm (mac 权限问题记住加sudo) nrm ls nrm use taobao
2020-04-13 11:46:49
210
1
原创 create-react-app 版本3.2
create-react-app vw-layout yarn eject 为了打开webpack.config.js yarn start 假如报错了 yarn add @babel/plugin-syntax-jsx -D 第一步完成辣 yarn add postcss-aspect-ratio-mini postcss-px-to-viewport postcss-wri...
2019-11-01 15:38:17
426
原创 react native 路由
初次学习react native ,真的是一步一个坑,简单说说路由吧,希望看到到小伙伴们不要踩,网上到不太适合新版本的。 推荐使用 yarn。 yarn add react-navigation yarn add react-native-reanimated react-native-gesture-handlerreact-native-screens@^1.0.0-alpha.23 ...
2019-10-12 12:17:11
160
1
原创 mongodb 权限和备份
mongodb默认是没有账号密码权限的 首先要mongod 开启服务 然后添加角色 再推出数据库 mongod --auth 如果要在linux后台运行 mongod --auth --fork --syslog 开启数据库后 use admin 添加用户 db.createUser({user:"root",pwd:"abc123",roles:[{role:"roo...
2019-10-10 15:59:54
451
原创 VUE 图片压缩上传
获取上传文件(单文件) var file = e.target.files[0]; 判断是否是图片 if (!/\/(?:jpeg|png|gif|jpg)/i.test(file.type)) return 声明FileReader类加载 let reader = new FileReader(); reader.readAsDataURL(file); reader.onl...
2019-06-13 23:28:58
176
原创 mongodb 索引篇
索引 LandSchema.index({_member:1},{unique: true}) 复合索引 LandSchema.index({_busy:1,_club:1},{unique: true}) 复合索引可以为空 LandSchema.index({_busy:1,_club:1},{unique: true,sparse:true}) ...
2019-06-12 18:39:35
69
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人