Metaobjects

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-09 19:43:26

软件介绍

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>


本文地址:https://codercto.com/soft/d/23027.html

刘强东自述

刘强东自述

刘强东 / 中信出版集团 / 2016-6-1 / 49.00

京东 1998年,京东还只是中关村一个经营光磁生意的小柜台,月营业额仅有几万元,如今则已经成长为中国营收规模超大的互联网企业,2015年全年营收1813亿,总交易额达到4627亿元; 为解决电商“最后一公里”的痛点,创立并自建B2C物流模式; 经常被争议,却始终坚持“不挣快钱”,选择上市不是因为“缺钱”,只为让合作伙伴睡得着觉,为用户和社会创造价值,由此成就让整个华尔街一片京东红......一起来看看 《刘强东自述》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

html转js在线工具
html转js在线工具

html转js在线工具