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
]
]
}
笨办法学Python 3
[美]泽德 A. 肖 / 王巍巍 / 人民邮电出版社 / 2018-6-1 / CNY 59.00
本书是一本Python入门书,适合对计算机了解不多,没有学过编程,但对编程感兴趣的读者学习使用。这本书以习题的方式引导读者一步一步学习编程,从简单的打印一直讲到完整项目的实现,让初学者从基础的编程技术入手,最终体验到软件开发的基本过程。本书是基于Python 3.6版本编写的。 本书结构非常简单,除“准备工作”之外,还包括52个习题,其中26个覆盖了输入/输出、变量和函数3个主题,另外26个......一起来看看 《笨办法学Python 3》 这本书的介绍吧!
