jQuery Dump $.dump( object ):$( selection ).dump()

程序名称:jQuery Dump $.dump( object ):$( selection ).dump()

授权协议: 未知

操作系统: 未知

开发语言:

jQuery Dump $.dump( object ):$( selection ).dump() 介绍

A attempt to port the PHP function print_r to javascript and jQuery. It simply
returns a nested string containing @R_997_4045@ion about the passed object.

Returns @R_997_4045@ion 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()

`

Hubba bubba dubba



`

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 ] ] }

jQuery Dump $.dump( object ):$( selection ).dump() 官网

http://plugins.jquery.com/project/Dump

相关编程语言

多功能下拉选择插件 SelectPage 简洁而强大的下拉分...
AutoComplete 是一个 jQuery Mobile 的插件,用于实...
Combogrid 是一个jQuery插件用于为输入框添加高级自...
Autobox2这个jQuery插件,可以用于创建类似于Facebo...
Link Scraper TextBox 是一个文本框的扩展插件,当你...
Awesomplete 超小超好用的超漂亮的 autocomplete 框...