Nicescroll滚动条插件是一个非常强大的基于jQuery的滚动条插件,不需要增加额外的css,几乎全浏览器兼容。ie6+,实现只需要一段代码,侵入性非常小,样式可完全自定义,支持触摸事件,可在触摸屏上使用。 官网地址:http://www.areaaperta.com/nicescroll/ ...
分类:
Web程序 时间:
2021-04-19 15:10:12
阅读次数:
0
type Location = { //这是一个location pathname: Pathname; search: QueryString; query: Query; state: LocationState; action: Action; key: LocationKey;};class ...
分类:
其他好文 时间:
2021-04-13 12:11:38
阅读次数:
0
1 重启和故障转移后的部分重同步 Redis 4.0 开始,当一个实例在故障转移后被提升为 master 时,它仍然能够与旧 master 的 slave 进行部分重同步。为此,slave 会记住旧 master 的旧 replication ID 和复制偏移量,因此即使询问旧的 replicati ...
分类:
其他好文 时间:
2021-04-13 11:49:55
阅读次数:
0
StreamWriter and UTF-8 Byte Order Marks I'm having an issue with StreamWriter and Byte Order Marks. The documentation seems to state that the Encoding ...
分类:
其他好文 时间:
2021-04-12 12:02:46
阅读次数:
0
之前也讲过了,actions中是用来操作异步代码的,由于在mutations写异步操作会导致devtools工具记录不到state的变化,因此才有actions的存在,下面是基本的使用,如下: 点击按钮,发布到actions: <template> <div> <button @click="toA ...
分类:
其他好文 时间:
2021-04-12 11:52:14
阅读次数:
0
# 生成CA证书 openssl genrsa -out ca/ca-key.pem 2048 openssl req -new -out ca/ca-req.csr -key ca/ca-key.pem Country Name (2 letter code) [AU]:cn State or P ...
分类:
其他好文 时间:
2021-04-10 13:02:49
阅读次数:
0
本人菜鸟一枚,再做上拉加载和上拉刷新的时候并没有找到详细的解决方式,所以想写一份可以帮助到刚刚接触Rn的童鞋不要踩坑了 第一步首先引入Flatlist <FlatList data={this.state.list} //这个是数据源 renderItem={this._renderItemView ...
分类:
其他好文 时间:
2021-04-09 13:06:56
阅读次数:
0
1、什么是hook?react hook是react 16.8推出的方法,能够让函数式组件像类式组件一样拥有state、ref、生命周期等属性。 2、为什么要出现hook?函数式组件是全局当中一个普通函数,在非严格模式下this指向window,但是react内部开启了严格模式,此时this指向un ...
分类:
其他好文 时间:
2021-04-08 13:46:08
阅读次数:
0
部署nginx #1.先去查看仓库有没有镜像 root@fanwd-virtual-machine:/home# docker search nginx NAME DESCRIPTION STARS OFFICIAL AUTOMATED nginx Official build of Nginx. ...
分类:
其他好文 时间:
2021-04-08 13:07:20
阅读次数:
0
class MyPromise { constructor(executor) { this.state = 'pending'; this.value = null; try { executor(this.resolve.bind(this),this.reject.bind(this)); } ...
分类:
其他好文 时间:
2021-04-06 14:22:04
阅读次数:
0