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>
代码整洁之道:程序员的职业素养
罗伯特·C.马丁 (Robert C.Martin) / 余晟、章显洲 / 人民邮电出版社 / 2016-9-1 / 49.00元
1. 汇聚编程大师40余年编程生涯的心得体会 2. 阐释软件工艺中的原理、技术、工具和实践 3. 助力专业软件开发人员具备令人敬佩的职业素养 成功的程序员在以往的工作和生活中都曾经历过大大小小的不确定性,承受过永无休止的压力。他们之所以能够成功,是因为拥有一个共同点,都深切关注创建软件所需的各项实践。他们将软件开发视为一种需要精雕细琢加以修炼的技艺,他们以专业人士的标准要求自己,......一起来看看 《代码整洁之道:程序员的职业素养》 这本书的介绍吧!
