开发者

jsTree: how to retrieve 'metadata'?

I tried this example, but there is still a problem - I could 开发者_运维知识库not get 'metadata' value. Could somebody show one more example?


That example is working fine for me with version 1.0-rc3

Here's another:

{
    'attr': {'id': 'example1'},
    'data': {
        'attr': {
            'href': '#'
        },
        'title': 'Example'
    },
    'metadata': {
        'hello': 'world'
    }
}

And to retrieve the metadata:

$(node).data('hello'); // world
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜