Dump Method
The Dump method is based on one of the tags available in Coldfusion ( <cfdump>) 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.
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).
Thanks to John Wilson for providing the jQuery plugin.
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
Download
Click here to download the latest version (1.08)
Click here to download the latest jQuery plugin
相关文章:
转载请注明出处:https://www.onexin.net/jquery/javascript-dump/
恩,不错,这些方面我的意见在我博客里也写过,可以交流一下。希望看到更好的文章
文章很好,很实用,感谢1
拜访这里,呵呵,留名纪念
呵呵,来关注了.支持一下!
路过留个脚印,楼下米有JJ
炎热的夏日希望我的来访能带给您一丝凉意,呵呵……
呵呵,博客风格不错,订阅了!