会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
simple-love
Figure out what you like. Try to become the best in the world of it.
首页
新随笔
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
16
下一页
2020年3月21日
Vue.Draggable学习总结
摘要: Draggable为基于Sortable.js的vue组件,用以实现拖拽功能。 特性 支持触摸设备 支持拖拽和选择文本 支持智能滚动 支持不同列表之间的拖拽 不以jQuery为基础 和视图模型同步刷新 和vue2的国度动画兼容 支持撤销操作 当需要完全控制时,可以抛出所有变化 可以和现有的UI组件兼
阅读全文
posted @ 2020-03-21 13:53 simple-love
阅读(1647)
评论(0)
推荐(0)
2020年3月20日
3d学习网
摘要: https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API https://www.wjceo.com/blog/threejs/2018-02-13/60.html 实例网 Three.js: https://threejs.org/doc
阅读全文
posted @ 2020-03-20 12:44 simple-love
阅读(363)
评论(0)
推荐(0)
2020年3月19日
vue router 报错: Uncaught (in promise) NavigationDuplicated {_name:""NavigationDuplicated"... 的解决方法
摘要: vue router 报错: Uncaught (in promise) NavigationDuplicated {_name:""NavigationDuplicated"... 的解决方法 本文链接:https://blog.csdn.net/weixin_43202608/article/d
阅读全文
posted @ 2020-03-19 13:44 simple-love
阅读(321)
评论(0)
推荐(0)
2020年3月18日
网页适配 iPhoneX,就是这么简单
摘要: 前言 iPhoneX 取消了物理按键,改成底部小黑条,这一改动导致网页出现了比较尴尬的屏幕适配问题。对于网页而言,顶部(刘海部位)的适配问题浏览器已经做了处理,所以我们只需要关注底部与小黑条的适配问题即可(即常见的吸底导航、返回顶部等各种相对底部 fixed 定位的元素)。 笔者通过查阅了一些官方文
阅读全文
posted @ 2020-03-18 19:09 simple-love
阅读(472)
评论(0)
推荐(0)
2020年3月15日
git提交代码
摘要: Git提交代码的流程——新手适用 pull:是下拉代码,相等于将远程的代码下载到你本地,与你本地的代码合并push:是推代码,将你的代码上传到远程的动作完整的流程是: 第一种方法:(简单易懂) 1、git add .(后面有一个点,意思是将你本地所有修改了的文件添加到暂存区)2、git commit
阅读全文
posted @ 2020-03-15 11:22 simple-love
阅读(1833)
评论(0)
推荐(0)
webpack和webpack-dev-server安装配置
摘要: 安装配置步骤: 1. 装好node和npm 2. 全局安装webpack npm install -g webpack 3. 建立项目,进入项目根目录 a. 新建一个package.json的文件在项目根目录下npm init b. 添加webpack.config.js配置文件 c. 添加app文
阅读全文
posted @ 2020-03-15 10:19 simple-love
阅读(1001)
评论(0)
推荐(0)
2020年3月14日
pointer-events元素永远不会成为鼠标事件的target。但是,当其后代元素的pointer-events属性指定其他值时,鼠标事件可以指向后代元素,在这种情况下,鼠标事件将在捕获或冒泡阶段触发父元素的事件侦听器。
摘要: https://developer.mozilla.org/zh-CN/docs/Web/CSS/pointer-events
阅读全文
posted @ 2020-03-14 18:03 simple-love
阅读(246)
评论(0)
推荐(0)
2020年3月9日
在JS数组指定位置插入元素
摘要: 一、JavaScript splice() 方法splice() 方法向/从数组中添加/删除项目,然后返回被删除的项目。 方法实例 //在数组指定位置插入 var fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.splice(2, 0,
阅读全文
posted @ 2020-03-09 19:18 simple-love
阅读(44994)
评论(0)
推荐(0)
2020年3月8日
Vue 实现 div contenteditable="true" 类似于 v-model 的效果
摘要: https://www.jianshu.com/p/b8d4d4c901b8
阅读全文
posted @ 2020-03-08 12:49 simple-love
阅读(525)
评论(0)
推荐(0)
2020年3月7日
json数据怎么根据ID找索引值
摘要: [ { id: 1, childNode: [ { id: 2, name: '哈哈哈’ } ] }, { id: 3, childNode: [ { id: 4, name: '哈哈哈’ } ] } ] 如果传入一个id = 2,那么返回他的父级索引值,加上他自己的索引 如果传入一个id = 1,
阅读全文
posted @ 2020-03-07 23:07 simple-love
阅读(1665)
评论(0)
推荐(0)
2020年3月4日
解决git@github.com: Permission denied (publickey). Could not read from remote repository.
摘要: https://www.jianshu.com/p/7d57ce4147d3
阅读全文
posted @ 2020-03-04 23:30 simple-love
阅读(497)
评论(0)
推荐(0)
vue-cropper剪切
摘要: https://github.com/xyxiao001/vue-cropper#readme
阅读全文
posted @ 2020-03-04 22:14 simple-love
阅读(318)
评论(0)
推荐(0)
2020年3月2日
React 的js向ts项目转移配置文件
摘要: https://www.jianshu.com/p/035c017bfa9c
阅读全文
posted @ 2020-03-02 12:36 simple-love
阅读(863)
评论(0)
推荐(0)
2020年2月29日
React-Native Animated.createAnimatedComponent
摘要: React-Native Animated.createAnimatedComponent export function createAnimatedComponent(component: any): any; 可以将自定义的组件转变成支持动画的组件 大概就是:CustomComponent =
阅读全文
posted @ 2020-02-29 21:01 simple-love
阅读(965)
评论(0)
推荐(0)
React 的 PureComponent Vs Component
摘要: 一.它们几乎完全相同,但是PureComponent通过prop和state的浅比较来实现shouldComponentUpdate,某些情况下可以用PureComponent提升性能 1.所谓浅比较(shallowEqual),即react源码中的一个函数,然后根据下面的方法进行是不是PureCo
阅读全文
posted @ 2020-02-29 20:52 simple-love
阅读(269)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
16
下一页
My GitHub