| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
9年前发布

在移动设备上调试Web应用的控制台:js-mobile-console

js-mobile-console是一个可以在在移动设备上调试Web应用的控制台。MobileConsole可嵌入至任何网页中进行调试,可捕获错误和行为完全是原生JS控制台浏览器。它还可以通过window.console的API编写日志输出。
mobile_screen.png

用法

简单用法:

mobileConsole.show();

高级用法:

mobileConsole.options({      showOnError: true,      proxyConsole: false,      isCollapsed: true,      catchErrors: true  });

Conditional toggling:

if (condition) {      mobileConsole.show();  } else {      mobileConsole.hide();  }

API

  • show - show console with default options.
  • hide - hide console.
  • options - method to initialize console, by default will show console, accepts hash of options.

Options

  • showOnError - Default false. Console will be hidden if no show method was called, but it will appear if any error occurs.
  • proxyConsole - Default true. Determines if window.console methods are proxied to mobile console.
  • isCollapsed - Default false. Determines if Console is collpased on startup.
  • catchErrors - Default false. Determines if Console is registring window.onerror method in order to catch errors.

项目主页:http://www.open-open.com/lib/view/home/1415324245855

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1415324245855.html
程序调试 js-mobile-console