zoukankan      html  css  js  c++  java
  • Firefox模拟手机访问手机网站

    说明:

      此方法只能用以那些以识别UA来判断的网站

    使用步骤:

      第一步:打开Firefox,点击菜单,工具-〉附加组件-〉获取附加组件;

      第二步:查询安装三个组件:User Agent Switcher、wmlbrowser、XHTML Mobile Profile;

      wmlbrowser、XHTML Mobile Profile是用来兼容解析WAP网页格式的组件;

      User Agent Switcher是模拟User Agent(UA)的组件,就是让浏览器假装成手机UA头,访问手机网站时让丫发给你一个适配页面;

      第三步:重启Firefox;

      第四步:设置UA。在 工具-〉Default User Agent-〉User Agent Switcher-〉Options…-〉New ->New User Agent,填写一下Description和User Agent。主要是User Agent正确了就OK。

    另:批量导入常用的UA列表,步骤如下:

      工具-〉Default User Agent-〉User Agent Switcher-〉Options…-〉Import。导入即可。UA列表

    wmlbrowser

      说明:Simulate WAP browsing by viewing WML(Wireless Markup Language) pages.

    XHTML Mobile Profile
      说明:Firefox does not natively support the mime-type application/vnd.wap/xhtml+xml. This is one of the possible mime-types for XHTML Mobile Profile. This addon adds support for this mime-type.

    User Agent Switcher

      说明:The User Agent Switcher extension adds a menu and a toolbar button to switch the user agent of a browser.

  • 相关阅读:
    我要把铁路修到威斯特摩兰
    1新建空白jasperreport模板
    oracle权限
    swagger配置
    lombok插件基本使用
    oracle与sqlserver的区别
    yaml语法学习
    第一个SpringBoot
    spring多环境切换
    JSR303数据校验
  • 原文地址:https://www.cnblogs.com/AngelLee2009/p/3373420.html
Copyright © 2011-2022 走看看