amp-fx-parallax 演示无法在我的服务器上运行

amp-fx-parallax demo not working on my server

我从这里将 AMP Playground 中的代码准确地复制到我服务器上的 php 文件中: https://ampbyexample.com/playground/#url=https%3A%2F%2Fampbyexample.com%2Fcomponents%2Famp-fx-parallax%2Fsource%2F

但它在那里不起作用,Google 开发工具说:

Experiment "amp-fx-parallax" is disabled.

但它与 AMP Playground 中的代码完全相同。

amp-fx-视差仍然是 experimental。您可以通过在浏览器的开发人员控制台中输入:AMP.toggleExperiment('amp-fx-parallax') 在本地启用实验。