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 使用什么函数来识别何时在 iOS 上点击了选择或输入标签并从本机底部视图中退出?我需要隐藏我的固定元素,这样当原生底部视图升起时它不会妨碍它。
您可以使用该onchange方法检查它何时被修改
onchange
var select = document.getElementById("elementId"); // runs everytime the selection is changed. select.onchange = function () { // do stuff. };
您最好使用 jQuery mobile,以便获得跨浏览器支持。
jQuery 移动