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.
var to = document.to.title.value.toString();
应该
var to = document.to.tit.value.toString();
但是,正如您所指出的,某些浏览器仍然不满意。Opera 不喜欢表单名称是to,因此将其更改为toForm并更新您的代码会使 Opera 再次高兴。
to
toForm
我是位运算的初学者(在 C 方面也不是很有经验),我遇到了以下表达式:
x |= (1<<y)
起初我以为它的意思是“x 等于 x 或 y 左移一位”,但后来我意识到这将是:
x |= (y<<1)