jQuery Dump
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/Dump
软件介绍
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
]
]
}
Pro Django
Marty Alchin / Apress / 2008-11-24 / USD 49.99
Django is the leading Python web application development framework. Learn how to leverage the Django web framework to its full potential in this advanced tutorial and reference. Endorsed by Django, Pr......一起来看看 《Pro Django》 这本书的介绍吧!
图片转BASE64编码
在线图片转Base64编码工具
HTML 编码/解码
HTML 编码/解码
