Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

实用的Stack Overflow问题收集(不止SO) #10

Open
MangiDu opened this issue Nov 28, 2018 · 0 comments
Open

实用的Stack Overflow问题收集(不止SO) #10

MangiDu opened this issue Nov 28, 2018 · 0 comments

Comments

@MangiDu
Copy link
Owner

MangiDu commented Nov 28, 2018

龟速积累中...😳

FE

  • 命中火狐浏览器的 CSS HACK
  • 谷歌和火狐浏览器offset计算差异的问题
    • 这个回答只是提供了最粗暴直接的办法:用jQuery
    • 但实际上1.12版本的jQuery中的解决思路是:非根元素非fixed元素elem,获取到其相对定位的父级元素offsetParent,伪代码elem.getBoundingClientRect.top - (offsetParent.getBoundingClientRect.top + offsetParent.style.borderTopWidth) - elem.style.marginTop,这个处理方法和cssom的草案的offsettop略有不同,规范中的说明是:取目标元素的top border edge的Y轴坐标值减去相对父级的top padding edge的Y轴坐标值,所以实际上应该elem.getBoundingClientRect.top - (offsetParent.getBoundingClientRect.top + offsetParent.style.borderTopWidth) 更准确些
  • NodeJs: exec与spawn的差异
    • exec返回buffer(默认size是200k),spawn返回stream
    • exec是同步的,spawn是异步的
    • 需要简单状态结果返回时用exec,大量数据的过程处理等用spawn
  • 什么是JSON安全的数据

工具使用

@MangiDu MangiDu changed the title 实用的Stack Overflow问题收集 实用的Stack Overflow问题收集(不止SO) Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant