Giter VIP home page Giter VIP logo

shizhonghai.github.io's People

Contributors

shizhonghai avatar

Watchers

James Cloos avatar  avatar

shizhonghai.github.io's Issues

每日一题(2019-10-29) | 我是瘦子

https://shizhonghai.github.io/blog-daily/2019/12/12/Daily-Interview-Question-2/

第 0002 题:Vue 中的 computed 和 watch 的区别在哪里computed:计算属性 计算属性是由 data 中的已知值,得到的一个新值。 这个新值只会根据已知值的变化而变化,其他不相关的数据的变化不会影响该新值。 计算属性不在 data 中,计算属性新值的相关已知值在 data 中。 具有缓存性,页面重新渲染值不变化,计算属性会立即返回之前的计算结果,而不必再次执行函数。

自定义 Echarts 图表悬浮框的位置 | 我是瘦子

https://shizhonghai.github.io/2019/08/12/echarts-tooltip/

由于项目需求,悬浮框内容较多,会出现悬浮框(tooltip)很长或者很宽的现象,而太长了,就会被 Echarts 溢出隐藏了,所以需要自定义定位需求 需求描述:鼠标悬浮在左侧某一个点时,悬浮框悬停在点的右侧;鼠标悬停在右侧某一个点时,悬浮框悬停在点的左侧。 首先明确一点,我们需要借助 tooltip.position 属性。理想的思路是我们在回调函数中获取鼠标每次悬停的坐标,然后再判断这个坐标

React 生命周期 | 我是瘦子

https://shizhonghai.github.io/2019/08/02/react-component/

防止自己忘掉 React 的一些生命周期方法,方便自己回忆和查阅。 componentDidUpdate() componentDidUpdate(prevProps, prevState, snapshot) componentDidUpdate() 会在更新后会被立即调用。首次渲染不会执行此方法。 当组件更新后,可以在此处对 DOM 进行操作。如果你对更新前后的 props 进行了比较,也可

Test

测试一个 issues

每日一题(2019-11-01) | 我是瘦子

https://shizhonghai.github.io/blog-daily/2019/12/12/Daily-Interview-Question-3/

第 0003 题:webpack 中 loader 和 plugin 的区别是什么loader 它是一个转换器,将 A 文件进行编译成 B 文件,比如:将 A.less 转换为 A.css,单纯的文件转换过程。plugin 是一个扩展器,它丰富了 webpack 本身,针对是 loader 结束后,webpack 打包的整个过程,它并不直接操作文件,而是基于事件机制工作,会监听 webpack 打

每日一题(2019-10-29) | 我是瘦子

https://shizhonghai.github.io/2019/12/12/Daily-Interview-Question-2/

第 0002 题:Vue 中的 computed 和 watch 的区别在哪里computed:计算属性 计算属性是由 data 中的已知值,得到的一个新值。 这个新值只会根据已知值的变化而变化,其他不相关的数据的变化不会影响该新值。 计算属性不在 data 中,计算属性新值的相关已知值在 data 中。 别人变化影响我自己。 watch:监听数据的变化 监听data中数据的变化。 监听的数

Webpack 优化总会让你不得不爱 | 我是瘦子

https://shizhonghai.github.io/2020/03/02/webpack-optimization/

加油在家的日子不能出去玩,不能出去吃,的确是很不开心的,不过也是真的增加了好多空闲时间 与其在家呆着无聊,不如安安静静的学习一下 疫情期间,不管怎样,心态不能崩,武汉加油,**加油 闲言少叙,现在我们就开始一起学习吧 优化是个好词优化,就是加以改变或选择使优良,在工作当中是让提升效率的好办法。当然,webpack 优化千千万,但我觉得这些就够了首当其冲的,就是工作中那些用不到的样式,可能是由于历史

自定义 Echarts 图表悬浮框的位置 | 我是瘦子

https://shizhonghai.github.io/blog-daily/2019/08/12/echarts-tooltip/

由于项目需求,悬浮框内容较多,会出现悬浮框(tooltip)很长或者很宽的现象,而太长了,就会被 Echarts 溢出隐藏了,所以需要自定义定位需求 需求描述:鼠标悬浮在左侧某一个点时,悬浮框悬停在点的右侧;鼠标悬停在右侧某一个点时,悬浮框悬停在点的左侧。 首先明确一点,我们需要借助 tooltip.position 属性。理想的思路是我们在回调函数中获取鼠标每次悬停的坐标,然后再判断这个坐标

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.