Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GWT:我的浏览器使用的是什么user.agent?_Gwt - Fatal编程技术网

GWT:我的浏览器使用的是什么user.agent?

GWT:我的浏览器使用的是什么user.agent?,gwt,Gwt,我使用的是GWT2.5和GWT2.7。我怀疑我遇到了由GWT选择错误的user.agent属性引起的错误。如何查看GWT选择的user.agent属性 理想情况下,我希望能够打开浏览器开发工具并输入类似于window.gwtProperties.getUserAgent的内容。这将返回我在user.agentmysomething.gwt.xml文件中指定的一个值 起点:我知道在GWT2.5中,用户代理是由UserAgentPropertyGenerator选择的。这会将javascript函数

我使用的是GWT2.5和GWT2.7。我怀疑我遇到了由GWT选择错误的
user.agent
属性引起的错误。如何查看GWT选择的
user.agent
属性

理想情况下,我希望能够打开浏览器开发工具并输入类似于
window.gwtProperties.getUserAgent的内容。这将返回我在
user.agent
my
something.gwt.xml
文件中指定的一个值

起点:我知道在GWT2.5中,用户代理是由UserAgentPropertyGenerator选择的。这会将javascript函数写入执行的位置,并确定使用的是
user.agent


谢谢。

链接器(在2.7中默认使用)将输出一个
编译映射.txt
文件,将每个置换强名称(相当于生成的
*.cache.js
文件)映射到置换属性值。因此,查看浏览器已加载的文件,您可以轻松跟踪计算并使用了哪个
user.agent