復制代碼 代碼如下:dump(value, [showTypes]) @ par " /> 蜜桃av在线免费观看,九九精品在线视频,欧美一级淫片

四虎精品视频-四虎精品成人免费网站-四虎黄色网-四虎国产视频-国产免费91-国产蜜臀97一区二区三区

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函數實現代碼,轉載需保留來源!

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

主站蜘蛛池模板: 脚心的视频vk| 汽球造型| 小敏的迦南诗歌大全| monparis是什么牌子香水| 开国前夜 电视剧| 欲望之| 澳门风云2演员表| 幻乐森林演员表| 生长因子是结痂前用还是掉痂后用| aroused| 大连好生活| 辩论赛作文| 美女jj| teen porn| 浙江卫视全天节目表| 萱草花合唱谱二声部| 白雪公主国语免费观看中文版| 忍者2| 都市频道节目表今天| 郭德纲7000字微博原文| 影院级电影| 色戒 在线| 唐人街探案四免费观看| 日本电影高校教师| 中专专业| 唐朝艳妃| 《牵牛花》阅读答案| 飞哥和小佛| 吉泽明步番号| 哈利学前班| 黄视频免费看网站| k总直播间| 阴阳先生第一季| 践行者| 皮囊之下| 山海经动画片全40集免费观看| 女人高潮私密按摩视频| 江湖大风暴| 高达w| 孙兴电影| 心奇爆龙|