- 博客(9)
- 收藏
- 关注
原创 create-react-app 版本3.2
create-react-app vw-layoutyarn eject 为了打开webpack.config.jsyarn 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
511
原创 react native 路由
初次学习react native ,真的是一步一个坑,简单说说路由吧,希望看到到小伙伴们不要踩,网上到不太适合新版本的。推荐使用 yarn。yarn add react-navigationyarn add react-native-reanimated react-native-gesture-handlerreact-native-screens@^1.0.0-alpha.23...
2019-10-12 12:17:11
286
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
549
原创 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
227
原创 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
113
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅