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.
有没有办法让 trigger.io 原生顶部栏在点击时将 webview 滚动到顶部?除了按钮之外,我看不到一种明显的方式来监听顶部栏上的点击。我们有一个很长的列表,并且希望单击该栏将页面滚动到顶部,就像单击状态栏时 Safari 所做的那样。
目前无法从 javascript 检测顶部栏上的点击。但是,您可以在顶部栏添加一个按钮并$(window).scrollTop()在按钮单击事件中使用。
$(window).scrollTop()