是什么?
5w: what when where why who
2H: how(如何做?资源?)? how much(多少钱、做到什么程度?)
有什么用?
如何设计一个 app?
基本的信息追问,适合基本场景。
如何使用?
注意事项
解决不了
复杂场景不适用。
参考资料
是什么?
有什么用?
如何使用?
注意事项
...
elementsFromPoint
elementsFromPoint 方法可以获取到当前视口内指定坐标处,由里到外排列的所有元素
根据 elementsFromPoint api,获取屏幕水平中线和竖直中线所在的元素
语法
var elements = document.elementsFromPoint(x, y);
参数
x 坐标点的水平坐标值
y 坐标点的垂向坐标值
...
是什么?
Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
入门
install
npm install -g lighthouse
# or use yarn:
# y...