JavaScript 的Console log 测试小例
2014-05-04 13:52
190 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Console log 测试</title> </head> <body> <h1>Console log 测试</h1> <input type="button" onclick="testConsole()" value="Console log 测试"> <dl> <dd></dd> </dl> <script type="text/javascript"> function testConsole(){ var full_url="media://192.168.1.101/DoDo/DaoLang-PiZheYangPiDeLang.wma<刀螂-披着羊皮的狼&rt;lyric://192.168.1.101/DoDo/DaoLang-PiZheYangPiDeLang.lrc" console.log(full_url) } </script> </body> </html>
Qt 客户端的测试方法
重载下面的函数:
void QWebPage::javaScriptConsoleMessage(const QString & message, int lineNumber, const QString & sourceID) [virtual protected]
This function is called whenever a JavaScript program tries to print a message to the web browser's console.
For example in case of evaluation errors the source URL may be provided in sourceID as well as the lineNumber.
The default implementation prints nothing.
即可接收.
相关文章推荐
- [原创]JavaScript测试工具介绍
- 多款浏览器javascript测试 性能与配置无关
- javascript延时加载之defer测试
- 蒙特卡洛自动求函数积分的Javascript(Nodejs)算法实现与测试
- 编写可测试的前端Javascript代码第一部分--反模式及其解决方案
- 测试驱动javascript开发 -- 1.单元测试
- 减轻JavaScript测试和调试负担
- javascript数组去重3种方法的性能测试与比较
- Javascript测试框架Jasmine(三):Setup、Teardown、嵌套describe等
- javascript页面渲染速度测试脚本分享
- [转 js] 使用JsUnit和JSMock的JavaScript测试驱动开发
- JavaScript 开发测试工具概览
- JavaScript异步拖拽上传文件(未测试)
- javascript基础(输出测试语句的三种方式)(一)
- JavaScript 测试及校验工具
- JavaScript 右键事件例子(IE/FF测试通过)
- JavaScript组合拼接字符串的效率对比测试
- JavaScript typeof操作符以及其它一些小测试题目解析
- JavaScript基础语法测试代码,覆盖JavaScript五大对象和function!