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

2019第四周 #14

Open
huruji opened this issue Jun 14, 2019 · 3 comments
Open

2019第四周 #14

huruji opened this issue Jun 14, 2019 · 3 comments

Comments

@huruji
Copy link
Owner

huruji commented Jun 14, 2019

https://chrome.google.com/webstore/detail/performance-analyser/djgfmlohefpomchfabngccpbaflcahjf/related

利用 performance API 可视化展示网页性能数据的插件

image

@huruji
Copy link
Owner Author

huruji commented Jun 16, 2019

js的类型转换:

jawil/blog#1

https://camo.githubusercontent.com/a55d51af56d9187004bdca0c9fcc5b4ccb265bce/687474703a2f2f7777312e73696e61696d672e636e2f6c617267652f6136363063616232677931666379387173316b79736a3231646b313171343875

    1. undefined == null,结果是true。且它俩与所有其他值比较的结果都是false。
    1. String == Boolean,需要两个操作数同时转为Number。
    1. String/Boolean == Number,需要String/Boolean转为Number。
    1. Object == Primitive,需要Object转为Primitive(具体通过valueOf和toString方法)。

@huruji
Copy link
Owner Author

huruji commented Jun 17, 2019

css加载会造成阻塞吗?

webkit 渲染过程

https://user-gold-cdn.xitu.io/2018/9/3/1659db14e773f9cc?imageView2/0/w/1280/h/960/format/webp/ignore-error/1

Gecko渲染过程

https://user-gold-cdn.xitu.io/2018/9/3/1659db14e7df8a8f?imageView2/0/w/1280/h/960/format/webp/ignore-error/1

@huruji
Copy link
Owner Author

huruji commented Jun 24, 2019

形象地解释了 css 选择器优先级地问题

image

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