You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

按GitHub指引引入AMP Story库时返回404 Not Found问题咨询

Fixing the 404 Error for AMP Story Script

Hey there! Let's get that AMP Story script 404 issue sorted out quickly.

The root of the problem is that the URL you're trying to use (https://cdn.ampproject.org/v0/amp-story-1.0.js) doesn't exist. AMP's component CDN follows a consistent naming rule: component files don't include version numbers in their filenames under the v0 directory.

Correct Script Import

Replace your current script tag with this valid one:

<script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story.js"></script>

Quick Check

Once you update the URL, double-check that your page meets basic AMP requirements (like having the <!doctype html> declaration, <html amp> tag, and the required AMP boilerplate code) to ensure the AMP Story component loads and functions as expected.

内容的提问来源于stack exchange,提问作者Victor Tsang

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 06:25:41