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://codercto.com/soft/d/23042.html

细节决定交互设计的成败

细节决定交互设计的成败

张亮 / 2009-3 / 49.00元

《细节决定交互设计的成败》是一本非常实用的有关软件界面的交互设计和可用性设计方面知识的书籍,通过采用一问一答的形式,你将会有针对性地学习到一些能够很快应用在自己软件开发工作中的细节知识和诀窍。例如,如何减轻用户的等待感,如何预防和减少用户的使用错误等。另外,你会发现阅读《细节决定交互设计的成败》时会非常轻松和愉悦;这是由于《细节决定交互设计的成败》写作上的两个特点:第一,采用较多日常生活中的例子来......一起来看看 《细节决定交互设计的成败》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

随机密码生成器
随机密码生成器

多种字符组合密码