FBML 使用类似 <fb:like></fb:like> <fb:board></fb:board>
的标签等等.
他们如何选择这些?我试过$('fb')
和$('fb:like')
,都返回一个空对象...有谁知道如何为 and 完成此操作?
最佳答案
例如这个,
<fb:like href="http://google.com" layout="box_count" show_faces="false" width="450"></fb:like>
/*
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").
*/
demo
关于jquery - 使用 jQuery 选择自定义的类似 fbml 的标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4825312/