Therefore, it is recommended to use hasOwnProperty or typeof to judge the value correctly.
var sLeft = window.screenLeft;
if( !window.hasOwnProperty('screenLeft')) sLeft = window.screenX; Therefore, it is recommended to use hasOwnProperty or typeof to judge the value correctly.
var sLeft = window.screenLeft;
if( !window.hasOwnProperty('screenLeft')) sLeft = window.screenX;