JavaScriptでディスプレイの大きさ(画面の解像度)を取得する
結論
これは大変簡単なことです。
let width=window.screen.width;
let height=window.screen.height;
let depth=Math.max(window.screen.pixelDepth,window.screen.colorDepth);
これは大変簡単なことです。
let width=window.screen.width;
let height=window.screen.height;
let depth=Math.max(window.screen.pixelDepth,window.screen.colorDepth);