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.
http://localapartmentdeals.com/
在上面的网站上有一个位置栏,如果您输入任何州(美国),它将显示一个自动建议列表,但不允许键盘敲击来选择列表,
例如:没有向下箭头在那里工作。
请有任何帮助
谢谢开发
它看起来没有检测到箭头键,你必须实现它。
您应该在function suggest代码中的某个地方处理箭头键,例如:
function suggest
... switch(keyCode) { case 38: //up arrow, highlight previous entry break; case 40: //down arrow //up arrow, highlight next entry break; ... }