问题描述
我正在使用JxBrowser,如果浏览器是JxBrowser,我的应用程序中有一些逻辑要避免。我在我的Javascript中使用了 navigator.userAgent ,该Javascript列表中不包含JxBrowser,但由于基于 chromium 而显示了JxBrowser的 chrome 。希望有一些可以识别JxBrowser的api。
解决方法
如何?
<script>
currentBrowser=navigator.appCodeName;
alert(currentBrowser);
</script>
,
@step感谢指向正确的方向,我设法找到JxBrowser已经具有包含用户代理的功能 https://jxbrowser.support.teamdev.com/support/solutions/articles/9000013113-user-agent