开发者

jquery .data(): is it portable to all the browser?

I开发者_如何学C just want to use it, it's good thing but I am not sure if it's supported by all major browsers.


I am not sure if it's supported by all major browsers.

It is. jQuery brings its own data storage implementation that is independent from browsers.

Additionally, HTML 5's data-* properties get pulled in when present (i.e. they are accessible through .data()).

According to the manual, the only exception is XML documents:

Note that this method currently does not provide cross-platform support for setting data on XML documents, as Internet Explorer does not allow data to be attached via expando properties.

jQuery docs on .data()

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜