自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 不刷新改变url的方法

history.pushState({url},'',url) 必须同源才有效,加一下参数就很好用

2020-04-13 12:04:43 188

原创 修改npm镜像最好的办法

npm install -g nrm (mac 权限问题记住加sudo)nrm lsnrm use taobao

2020-04-13 11:46:49 313 1

原创 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 地理坐标

lbs: {type: Array,index: '2d',sparse: true}, //经纬度

2019-06-12 18:41:07 586

原创 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

原创 vue子组件主动获取父组件属性方法

子组件直接调用this.$parent.data  

2019-02-13 09:17:47 1925

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除