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

04-36- offset问题 #247

Open
shik617 opened this issue Aug 17, 2022 · 2 comments
Open

04-36- offset问题 #247

shik617 opened this issue Aug 17, 2022 · 2 comments

Comments

@shik617
Copy link

shik617 commented Aug 17, 2022

offsetLeft 和 offsetTop那里说了父元素的parent的border不算在内, 但是我自己试出来改变父元素的border是会影响到offsetLeft 和 offsetTop的.

MDN里的定义是"元素自己 border 左边距离父元素 border 左边或者 body 元素 border 左边的距离", 所以应该是"元素自身的 border 不算在内" ?

@shik617
Copy link
Author

shik617 commented Aug 18, 2022

再补充一个
04-39-event举例1 scroll封装函数的属性名写成了"left" "right", 应该是"top" "left"

@shik617
Copy link
Author

shik617 commented Aug 23, 2022

再补充一个
06-07-Promise的静态方法- Promise.all()部分写了结论"可以看到,当 promise2 执行失败之后,马上就走到了 catch,而且 promise3 里的 resolve 并没有执行。", 但如果最后加一行
setTimeout(()=>{console.log(promise3)}, 5000);
可以发现promise3的状态时fulfilled, 说明它resolve还是执行了.

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