Create similar to fb:tag

前端 未结 1 410
失恋的感觉
失恋的感觉 2021-01-16 05:12

I would like to create something similar to fb: tag.

For example if you put fb:comments in your code it would display your comments from Facebook.

Ofcourse y

相关标签:
1条回答
  • 2021-01-16 05:59

    Its actually done by javascript (if you are talking about puting fb:... in html). All that you need to do is parse the DOM tree on load of document for particular tag/prefix and process as needed. You can use jQuery or dojo etc for complex queries. Same concept used in dojo for widgets but with custom attribute on tag.

    <button data-dojo-type="dijit.form.Button" type="button">
    
    0 讨论(0)
提交回复
热议问题