Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 1768 到 1815 的值范围,我有我的 if 语句
if (location.x = 1768 to 1815) { //perform code }
我要创建一个数组还是我该怎么做?对不起,我是编程新手
if (location.x >= 1768 && location.x <= 1815)