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.
我是 javascript 新手,这可能非常简单明了,但我在任何地方都找不到答案。
我想要一个特定的表单响应来将用户发送到特定页面,例如,键入“one”并按 Enter 会将他们带到页面“/one.html”,如果这有意义的话?有什么帮助吗?
document.location = document.getElementById('yourinputfield').value() + '.html';