uniapp webview 修改ua(UserAgent、user-agent)
//设置userAgent代理plus.navigator.setUserAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36");
修改后,webview的userAgent将会改变。
参考文档:https://www.html5plus.org/doc/zh_cn/navigator.html#plus.navigator.setUserAgent
其他文档:https://uniapp.dcloud.net.cn/collocation/manifest-app.html#full-manifest