Metaobjects
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/metaobjects
软件介绍
The metadata plugin on steroids, now at version 1.3 (released on 2007-03-02)
Metaobjects is used for setting properties of DOM elements, from something as simple as a boolean to something as complex as a function declaration or executable code, too.
In the following example we set the title property of the span to the title of the web page without a single line of javascript ( pretty useless, but awesome ;-)
BEFORE
<span><object class="metaobject">
<param name="title" value="document.title"/>
</object>Hover your mouse here to see the title of this page</span>
AFTER
<span>Hover your mouse here to see the title of this page</span>
As you see the metaobject is automatically removed. And abracadabra... if you does as it says (hover) you'll really see the tooltip with the title of the page, even if there is not an HTML explicit "title" property.
You can also use the added metadata from jQuery, like here:
BEFORE
<span id="foo"><object class="metaobject">
<param name="bar" value="Hello World!"/>
</object>I'm going to say... </span>
USING jQuery
$( "#foo" ).append( $( "#foo" )[0].bar );
AFTER
<span id="foo">I'm going to say... Hello World!</span>
可爱的Python
哲思社区 / 电子工业出版社 / 2009-9 / 55.00元
本书的内容主要来自CPyUG社区的邮件列表,由Python的行者根据自身经验组织而成,是为从来没有听说过Python的其他语言程序员准备的一份实用的导学性质的书。笔者试图将优化后的学习体验,通过故事的方式传达给读者,同时也分享了蟒样(Pythonic式)的知识获取技巧,而且希望将最常用的代码和思路,通过作弊条(Cheat Sheet,提示表单)的形式分享给有初步基础的Python 用户,来帮助大家......一起来看看 《可爱的Python》 这本书的介绍吧!
