UserVoice 等托管服务如何将其内容嵌入其他网站?

2022-01-18 00:00:00 widget javascript javascript-framework

UserVoice 等托管服务如何将其内容嵌入其他网站?

How do hosted services like UserVoice embed their content on other web sites?

我看到它是通过在您自己的页面上包含来自服务提供商的 JavaScript 文件,但是,我感兴趣的是创建此类服务的构建块.

I see that it is via including a JavaScript file from the service provider on your own page, however, what I'm interested in are the building blocks for creating a service like that.

例如,他们是否使用 jQuery、mooTools 或prototypejs 之类的库以及如何避免命名空间冲突?

For example, do they use a library like jQuery, mooTools, or prototypejs and how do they avoid namespace clashes?

还想知道是否有任何书籍、文章、博客文章讨论了 JavaScript 的这种特定用途(不是寻找有关 JavaScript 的一般资源).

Also wondered if there were any books, articles, blog posts that go over this specific use of JavaScript (not looking for general resources on JavaScript).

提前致以问候和感谢,

艾略特

推荐答案

这是我在 如何找到的一个很棒的教程构建一个 Web 小部件(使用 jQuery)

相关文章