jQuery Dump

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-09 23:26:59

软件介绍

A attempt to port the php function print_r to javascript and jQuery. It simply returns a nested string containing information about the passed object.

Returns information about:

  • Strings

  • Numbers

  • Booleans

  • Dates

  • Arrays

  • Objects

  • jQuery Objects

  • RegExp

  • Errors

  • DOMElements

  • Functions

Usage:

$.dump( object ):

<pre id="dump"></pre>
<script type="text/javascript">
    $(document).ready(function(){
        var obj = {
            hubba: "Some string...",
            bubba: 12.5,
            dubba: ["One", "Two", "Three"]
        }
        $("#dump").append($.dump(obj));
    });
</script>

Should result in:

Object {
     hubba: "Some string..."
     bubba: 12.5
     dubba: Array (
          0 => "One"
          1 => "Two"
          2 => "Three"
     )
}

$( selection ).dump()

<p>Hubba <span>bubba</span> dubba</p>

<pre id="dump"></pre>
<script type="text/javascript">
    $(document).ready(function(){
        $("#dump").append($("p").dump());
    });
</script>

Should result in:

jQuery Object {
     0 = DOMElement [
          nodeName: P
          nodeValue: null
          innerHTML: [
               0 = String: Hubba
               1 = DOMElement [
                    nodeName: SPAN
                    nodeValue: null
                    innerHTML: [
                         0 = String: bubba
                    ]
               ]
               2 = String: dubba
          ]
     ]
}

本文地址:https://www.codercto.com/soft/d/23042.html

VISUAL BASIC 6.0 WINDOWS API讲座

VISUAL BASIC 6.0 WINDOWS API讲座

王国荣 / 人民邮电出版社 / 1999-06-01 / 76.00元

本书全面介绍了在Visual Basic 6.0中如何调用Windows API的技术,特别是结合读者在应用中经常遇到的具体问题编写了许多应用范例,书中还给出了API函数的速查表。本书主要内容包括: Windows API的基本概念和调用方法,资源文件的使用,Windows的消息系统及其应用,API在绘图中的应用,多媒体文件的播放,特殊命令按钮的制作等。 本书适用于已熟悉Visual Basic的一起来看看 《VISUAL BASIC 6.0 WINDOWS API讲座》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具