📌  相关文章
📜  window.orientation 给 undefined - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:47.257000             🧑  作者: Mango

代码示例1
It works when I test it on a device which supports orientation.

Presumably your test suite does not include such a device, so the value of the
property is undefined unless explicitly set to something.

check here: https://output.jsbin.com/efuhud/1