使用jQuery选择自定义类似fbml的标签

Rav*_*rsT 3 jquery jquery-selectors fbml

FBML正在使用像<fb:like></fb:like> <fb:board></fb:board>等标签.

他们如何选择这些?我试过$('fb')$('fb:like'),都返回一个空的对象......没有人知道如何可以和做什么?

Rei*_*gel 13

比如这个,

<fb:like href="http://google.com" layout="box_count" show_faces="false" width="450"></fb:like>
Run Code Online (Sandbox Code Playgroud)


/*

If you wish to use any of the meta-characters 
( such as !"#$%&'()*+,./:;?@[\]^`{|}~ ) as a literal part of a name, 
you must escape the character with two backslashes: \\. For example, 
if you have an an element with id="foo.bar", you can use the selector 
$("#foo\\.bar"). 

*/
Run Code Online (Sandbox Code Playgroud)

演示