如何检查移动野生动物园的窗口对象? [英] How can I inspect the window object for mobile safari?

查看:117
本文介绍了如何检查移动野生动物园的窗口对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查移动野生动物园的窗口对象?

How can I inspect the window object for mobile safari?

或者更具体地说是window.navigator - 尝试转换为字符串不起作用我不能在控制台内探索它。

Or more specifically window.navigator - trying to convert to string doesn't work and I can't explore it within the console either.

谢谢!

编辑:

console.log(window.navigator);

console.log(String(window。 navigator));

console.log(JSON.stringify(window.navigator));

console.log(window.navigator.serialize());

还尝试通过套接字将所有这些变体发送到服务器并将其记录在那里。

Also tried sending all these variations over the socket to the server and logging them there.

输出为 [对象导航器] {},或者没有

推荐答案

我喜欢jsconsole.com。

I like jsconsole.com.

此外,您可以使用json2.js库(https://github.com/douglascrockford/JSON-js),它将为您提供JSON.stringify()函数。

Also, you can use the json2.js library (https://github.com/douglascrockford/JSON-js), which will give you JSON.stringify() function.

console.log(JSON.stringify({a:'a',b:'b'});

这篇关于如何检查移动野生动物园的窗口对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆