欢迎来到蕾蕾的博客

摘要: p { text-align-last: justify; -moz-text-align-last: justify ; //兼容firefox text-align: justify; text-justify: distribute-all-lines; //兼容ie display: blo 阅读全文
posted @ 2020-06-09 09:19 蕾蕾是个程序员 阅读(516) 评论(0) 推荐(0) 编辑
摘要: require.context 你可以通过 require.context() 函数来创建自己的context。 可以给这个函数传入三个参数:一个要搜索的目录,一个标记表示是否还搜索其子目录, 以及一个匹配文件的正则表达式。 webpack 会在构建中解析代码中的 require.context() 阅读全文
posted @ 2020-05-13 13:45 蕾蕾是个程序员 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 一、path模块的引入。 直接引用。node中自带的模块 const path = require('path'); 二、path.join(path1,path2,path3.......) 作用:将路径片段使用特定的分隔符(window:\)连接起来形成路径,并规范化生成的路径。若任意一个路径片 阅读全文
posted @ 2020-05-12 11:39 蕾蕾是个程序员 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 1.react-native的Text宽度不设置时要自适应Text的文本长度 <View style={{alignSelf:'flex-start'}}> <Text>sss</Text> </View> 2.react-redux使用时利用ref调用子组件方法不可用报错 如下在父组件中调用子组件 阅读全文
posted @ 2019-12-04 15:53 蕾蕾是个程序员 阅读(413) 评论(1) 推荐(0) 编辑
摘要: 1.沉浸式,将状态栏放在导航栏里面,导航栏使用的是react-navigation import React from 'react';import {YellowBox,StatusBar} from "react-native"import {createAppContainer} from ' 阅读全文
posted @ 2019-10-22 17:04 蕾蕾是个程序员 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 1.import withNavigationFocus from react-navigation to your class . 2.hen export your like this : export default withNavigationFocus(yourclassname) 3.u 阅读全文
posted @ 2019-10-15 15:57 蕾蕾是个程序员 阅读(1162) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="test"> <div v-for="(item, index) in arr" :key="index"> <p>姓名:{{ item.name }}</p> <p>年龄:{{ item.age }}</p> <p>爱好:{{ item.like }} 阅读全文
posted @ 2019-09-07 16:52 蕾蕾是个程序员 阅读(8142) 评论(0) 推荐(1) 编辑
摘要: 1.git介绍 Git 是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本控制软件。 2.git安装 git官网下载安装,全部都是下一步然后install,检验安装是否成功:选择一个文件,右键看是否有Git Gui here(图形化管理界面)和Git Ba 阅读全文
posted @ 2019-06-20 18:04 蕾蕾是个程序员 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 一、$router和$route的区别 $router : 是路由操作对象,只写对象$route : 路由信息对象,只读对象 例子://$router操作 路由跳转 this.$router.push({ name:'hello', params:{ name:'word', age:'11' } 阅读全文
posted @ 2019-06-19 11:32 蕾蕾是个程序员 阅读(4089) 评论(1) 推荐(2) 编辑
摘要: 1.和vue的生命周期有关,必须要在从mounted开始拿,才能拿得到里面的Dom元素 2.想在element ui 对话框打开后取dom时,应该使用$nextTick,而不是直接使用this.$refs. imgLocal2: console.log('this.$refs.imgLocal2外面 阅读全文
posted @ 2019-05-22 16:23 蕾蕾是个程序员 阅读(5151) 评论(0) 推荐(0) 编辑