我尝试了这个示例,但仍然存在问题 - 我可以没有获得“元数据”值。有人可以再举一个例子吗?
I tried this example, but there is still a problem - I could not get 'metadata' value. Could somebody show one more example?
这个例子对我来说工作得很好,版本 1.0-rc3
这是另一个:
{ 'attr': {'id': 'example1'}, 'data': { 'attr': { 'href': '#' }, 'title': 'Example' }, 'metadata': { 'hello': 'world' } }
并检索元数据:
$(node).data('hello'); // world
That example is working fine for me with version 1.0-rc3
Here's another:
And to retrieve the metadata:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
这个例子对我来说工作得很好,版本 1.0-rc3
这是另一个:
并检索元数据:
That example is working fine for me with version 1.0-rc3
Here's another:
And to retrieve the metadata: