復制代碼 代碼如下:dump(value, [showTypes]) @ par " /> 亚洲视频在线播放,狠狠综合,高清国产视频

中文字幕日韩一区二区_国产一区二区av_国产毛片av_久久久久国产一区_色婷婷电影_国产一区二区精品

Javascript中的var_dump函數實現代碼

發現了一個非常好的JavaScript調試方法,目前看到的是可以打印Object/Array/Function/String四種類型,使用方法和php中的var_dump()一樣,只要直接dump(變量名)即可。

復制代碼 代碼如下:
dump(value, [showTypes])
@ param value (Any) value to dump
@ param [showTypes] (Boolean) optional to display each key/value's type
@ return (Void) returns nothing


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).

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.jb51.NET/jiaoben/20804.html

JavaScript技術Javascript中的var_dump函數實現代碼,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 欧美11一13sex性hd | 国产亚洲一区二区三区 | 亚洲精品国产电影 | av手机免费在线观看 | 日韩欧美在线观看一区 | 91传媒在线观看 | 国产日韩亚洲欧美 | 国产在线观看不卡一区二区三区 | 黄色一级大片在线免费看产 | 久综合| 中文在线a在线 | 日韩欧美不卡 | 久久国产欧美日韩精品 | 91久久精品 | 国产在线视频在线观看 | 亚洲一二三在线 | 中文在线播放 | 国产成人精品在线 | 一区中文 | 亚洲三区在线观看 | 亚洲网站在线观看 | 欧美在线一级 | 久久久高清| 成人免费视频网站在线看 | 久久久国产视频 | 国产精品完整版 | 久久综合一区 | 日韩三级 | 成人免费在线电影 | 欧美色成人 | 日本午夜精品 | 爱草在线| 色免费在线视频 | 久久男人 | 日韩毛片免费视频 | 91香蕉视频在线观看 | 亚洲一区在线日韩在线深爱 | 久久出精品 | 亚洲超碰在线观看 | 在线日韩不卡 | 成人精品鲁一区一区二区 |