上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

2020年5月22日

老是忘记的代码

摘要: 1.单行文本省略 white-space : nowrap; overflow : hidden; text-overflow: ellipsis; 2.多行文本省略 overflow: hidden; display: -webkit-box; -webkit-box-orient: vertic 阅读全文

posted @ 2020-05-22 09:25 秃了头也不退休 阅读(142) 评论(0) 推荐(0)

2020年5月21日

react-orgchart 制作组织架构图

摘要: 一、使用前的准备 $ npm install jquery $ npm install expose-loader $ npm install orgchart $ npm install font-awesome 二、对应js页面demo import React, { Component } f 阅读全文

posted @ 2020-05-21 17:50 秃了头也不退休 阅读(2790) 评论(1) 推荐(0)

文本溢出的处理方案

摘要: 1.单行文本溢出 css方案 overflow: hidden; text-overflow:ellipsis; white-space: nowrap; 2.多行文本溢出 word-break: break-all; display: -webkit-box; -webkit-box-orient 阅读全文

posted @ 2020-05-21 17:40 秃了头也不退休 阅读(592) 评论(0) 推荐(0)

2020年5月6日

vue-fastclick

摘要: 移动端点击延迟事件 1. 移动端浏览器在派发点击事件的时候,通常会出现300ms左右的延迟 2. 原因: 移动端的双击会缩放导致click判断延迟 解决方式 1. 禁用缩放 `<meta name = "viewport" content="user-scalable=no" > ` 缺点: 网页无 阅读全文

posted @ 2020-05-06 09:42 秃了头也不退休 阅读(1612) 评论(0) 推荐(0)

2020年4月30日

2019面试题1

摘要: 1.原型和原型链2.继承3.闭包4.Promise的用法,promise.all的使用5. vue异步获取到数据,到渲染,这个过程的原理6. 把一个url转换成一个对象7. 如何判断一个数组,is array 、 instanceof constructor8. 谷歌浏览器F12在Source中如何 阅读全文

posted @ 2020-04-30 11:27 秃了头也不退休 阅读(121) 评论(0) 推荐(0)

js-Array.from()

摘要: 例子1——将类数组转换为数组 let array = { 0: 'name', 1: 'age', 2: 'sex', 3: ['user1','user2','user3'], 'length': 4 } let arr = Array.from(array ) console.log(arr) 阅读全文

posted @ 2020-04-30 11:25 秃了头也不退休 阅读(4616) 评论(0) 推荐(0)

js的15种循环

摘要: http://www.360doc.com/content/19/0709/09/43615570_847586162.shtml 阅读全文

posted @ 2020-04-30 10:35 秃了头也不退休 阅读(147) 评论(0) 推荐(0)

css-postition:sticky

摘要: sticky 的本意是粘糊糊的,但在 css 中的表现更像是吸附。常见的吸顶、吸底(移动端网站的头部返回栏,底部切换栏之类)的效果用这个属性非常适合。 .sticky { position: sticky; position: -webkit-sticky; top: 0; } 特性(坑): 1.s 阅读全文

posted @ 2020-04-30 10:24 秃了头也不退休 阅读(967) 评论(0) 推荐(0)

2020年4月28日

react-hook

摘要: 1.memo 用于优化方法 const Foo=memo((props)=>{ return <div>{props.person.age}</div> }) 2.useState const [count,setCount]=useState(()=>{ return PaymentRespons 阅读全文

posted @ 2020-04-28 14:44 秃了头也不退休 阅读(209) 评论(0) 推荐(0)

react lazy和suspense

摘要: 代码拆分 Webpack-Code Splitting import import('./detail.js').then(...) import React, { Component,lazy,Suspense } from 'react'; const About = lazy(()=>impo 阅读全文

posted @ 2020-04-28 14:09 秃了头也不退休 阅读(233) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 下一页

导航