Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以通过创建 amp-jQuery 组件/标签在加速移动页面 (AMP) 中使用 jQuery 吗?
我是否仅限于使用可用的组件/标签?
如果我可以创建自定义组件/标签,我该如何创建一个?
目前,您不能在 AMP 页面上使用任何自定义 javascript。我假设您希望您的某些组件具有交互性,而 amp-component 尚未提供这些组件。您可以选择使用 amp-iframe,托管包含启用了 jquery 的组件的 url。