会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tiry Li
新起航 新起点
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2021年4月22日
vue 上拉加载几行代码搞定(pc + 移动端)
摘要: created () { window.addEventListener('scroll', this.onScroll) }, methods: { onScroll () { let innerHeight = document.querySelector('#app').clientHeigh
阅读全文
posted @ 2021-04-22 09:54 libenzheng
阅读(475)
评论(0)
推荐(0)
2021年2月6日
js 开始 - 结束时间计算方法
摘要: console.log(this.initTime('2020-06-27 15:30', '2020-10-27 15:30')) // start, end 开始结束时间 2020-06-27 15:30)" initTime (start, end) { const timeLength =
阅读全文
posted @ 2021-02-06 10:06 libenzheng
阅读(836)
评论(0)
推荐(0)
2021年2月1日
webpack vue 读取文件中的vue 文件
摘要: 直接上代码: // 获取组件下gallery 文件夹下的 .vue 文件 const files = require.context('@/components/gallery/', true, /\.vue$/); // 空对象接收gallery const gallery = {}; files
阅读全文
posted @ 2021-02-01 15:50 libenzheng
阅读(510)
评论(0)
推荐(0)
2020年10月27日
nginx安装之前的依赖包安装
摘要: 1. nginx是通过源码包发布的,而nginx是c写的,因此需要安装c/c++的编译器 sudo yun install gcc 2. zlib是提供数据压缩用的函式库 地址:http://www.zlib.net/ 1. 下载源码到本地: wget http://www.zlib.net/zli
阅读全文
posted @ 2020-10-27 14:24 libenzheng
阅读(594)
评论(0)
推荐(0)
2020年10月26日
Win10 Hyper-V虚拟机安装Centos7 并联网
摘要: Hyper-v是windows10 自带的虚拟机 类似VMvare 和VM box Win10 默认没开启Hyper-v功能 本教程使用的是Win10专业版 1809版本 一 、开启Hyper-v win键在搜索框中 搜索 启用或关闭Windows 或者 控制面板 —程序–程序和功能—-启用或关闭w
阅读全文
posted @ 2020-10-26 11:40 libenzheng
阅读(272)
评论(0)
推荐(1)
2020年7月14日
js 常用小知识
摘要: 数组处理方法:1. push() --追加数据 2. pop() --删除最后一个数据 3. shift() --删除第一个元素 4. unshift() --添加前面一个数据 5. splice(1,1)splice(1,0,data)splice(1,1,data) --从第几个删除、添加、替换
阅读全文
posted @ 2020-07-14 14:15 libenzheng
阅读(38)
评论(0)
推荐(0)
2020年5月22日
react-router-dom Prompt 组件
摘要: 这是Prompt 组件是在离开当前页面是触发 import { Link, Prompt } from 'react-router-dom' // 在页面中添加标签 <Prompt when={isShelf} // 一个状态when= true 是才触发下面方法 message={this.unA
阅读全文
posted @ 2020-05-22 10:18 libenzheng
阅读(1681)
评论(0)
推荐(0)
react 的验证码倒计时
摘要: react 的验证码倒计时 constructor(props) { super(props); this.state = { code: '', title: '注册/登录', count: 60, isCode: false, codeTitle: '获取验证码', }; } handlecha
阅读全文
posted @ 2020-05-22 10:17 libenzheng
阅读(206)
评论(0)
推荐(0)
2020年5月19日
react 项目安装配置 问题
摘要: 注意事项(报错) npm install -g cnpm --registry=https://registry.npm.taobao.org 'react-scripts' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 // 有时在安装完其他组件后,再次运行 npm start 命令时会
阅读全文
posted @ 2020-05-19 09:55 libenzheng
阅读(307)
评论(0)
推荐(0)
2020年4月22日
react 基础知识
摘要: react 特点 声名式开发 可以与其他框架并存 组件化 单向流数据 视图层框架 函数式编程 props, state render state 和 props 中数据改变render函数 执行 父组件的render函数重新执行的时候子组件的render 也会执行 虚拟DOM (js 对象,js 和
阅读全文
posted @ 2020-04-22 09:52 libenzheng
阅读(83)
评论(0)
推荐(0)
上一页
1
2
3
下一页