在manifest.json中的plus->popGetsture属性值设置为“none”,
IOS手机侧滑还是能够返回, 什么原因??
如果在页面添加如下代码, 可以禁止侧滑返回, 但是必须每个页面都加!
var ws = plus.webview.currentWebview();
ws.setStyle({'popGesture': 'none'});
在manifest.json中的plus->popGetsture属性值设置为“none”,
IOS手机侧滑还是能够返回, 什么原因??
如果在页面添加如下代码, 可以禁止侧滑返回, 但是必须每个页面都加!
var ws = plus.webview.currentWebview();
ws.setStyle({'popGesture': 'none'});
1 个回复
Trust - 少说废话
可以自行对mui的openWindow进行二次封装,在styles中设置该属性默认为none即可。
例