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.
我想尝试使用具有透明背景的 ons.screen.presentPage() 创建一个弹出窗口,但是一旦转换完成,页面后面就会出现一个黑色蒙版。您能否指出这个黑色面具的用途或创建弹出对话框/选择器的最佳方式?
黑色蒙版用于实现退出页面的淡出效果。
您可以做的是使用 DOM api 将其隐藏。
前任。
// the controller of the entering page function Page2Controller($scope){ setTimeout(function(){ $('.onsen_screen-black-mask').hide(); }, 0); }