我的网站在Google Chrome 42和Mozilla Firefox 47上运行得很好,但在Android的内置浏览器(也包括Opera Mini 17)中不能工作,我怎么知道javascript
的哪一部分导致我的站点不能正常运行?
Note:我不是要求在Google或Mozilla手机上调试,而是要求使用Android内置浏览器或Opera进行调试
发布于 2016-07-02 02:37:44
为此,您可以使用一个名为温尔的优秀工具:)
它是做什么的?
它允许您调试您的手机上运行的网站从您的桌面,认为它是一个开发工具,为您的移动网页浏览器。
我该怎么设置它?
首先安装npm,如果您在Windows上,在Windows上遵循此链接 npm作为管理员,然后使用以下命令安装weinre:
npm -g install weinre
现在启动weinre服务器:
weinre --httpPort 8081 --boundHost -all-
--httpPort specifies the port to run the HTTP server on, default is 8080.
--boundHost specifies the ip address to bind the server to. Default is localhost, but for convenience make it bind to all ip addresses.
现在到http://localhost:8081/,你将看到你的Weinre运行良好和新鲜。
https://stackoverflow.com/questions/38155679
复制相似问题