Angular gets the width and height of the browser:
$ Window. innerwidth; // browser width
$ Window. innerheight; // browser height
Jquery $ jqlite gets the distance between the mouse and the browser's upper left corner:
E. pagex; // relative to left in the upper left corner of the browser
E. Pagey; // relative to the top left corner of the browser
Distance between native elements and the upper left corner of the browser:
Ele. offsetleft; // element relative to left in the upper left corner of the browser
Ele. offsettop; // element relative to top in the upper left corner of the browser
Native obtains the width and height of elements:
Ele. offsetwidth; // The width of the element, which includes padding and border.
Ele. offsetheight; // The height of the element, which includes padding and border.
Something that is hard to remember and confusing (constantly updated)