Javascript,var_dump
web前端-js教程
发现了一个非常好的JavaScript调试方法,目前看到的是可以打印Object/Array/Function/String四种类型,使用方法和PHP中的var_dump()一样,只要直接dump(变量名)即可。 p2p 理财 源码 asp.net 下载,gtx1050ubuntu,学习通视频爬虫,anvo php,知春路seo优化lzw
dump(value, [showTypes])The Dump method is based on one of the tags available in Coldfusion ( ) providing the ability to display simple and complex variables in a user friendly way that is perfect for debugging/inspecting data. There is no way to do this with javascript and often I had wanted a method to do this. This method will do just that allowing for an infinite amount of data nesting complete with color coding for different data types, the ability to show/hide the data’s type (String/Number/Boolean/Object/Array/Function), expandable and collapsible tables/keys and cross browser support.
@ param value (Any) value to dump
@ param [showTypes] (Boolean) optional to display each key/value's type
@ return (Void) returns nothing
html5棋牌游戏源码下载,小米启动安装ubuntu,安卓版本的tomcat,爬虫数据成本,php显示行号,和平区专业seo推广价格秒收录lzw
Click on the buttons bellow to see some examples in action, toggle the Show Data Types box to see javascript data typing in action (not possible in Coldfusion). 热血传奇源码,ubuntu 使用光驱,小程序爬虫案例,php注射,seo外包模板lzw
Browser Support Internet Explorer 6, Internet Explorer 7, Firefox 1.5, Opera 8, Safari 1.2 (Mac), Firefox (Mac) – all tested, should also work in most other browsers
Dump Examples
官方网址
http://www.netgrow.com.au/files/javascript_dump.cfm
相关文件
http://www.netgrow.com.au/assets/files/dump/dump.zip
以防上面的地址下载不了,脚本之家本地下载地址
http://www.liuzhongwei.com/jiaoben/20804.html