【问题标题】:Is there a way to add AMP list in AMP forms in "submit-success"?有没有办法在“提交成功”的 AMP 表单中添加 AMP 列表?
【发布时间】:2018-06-15 21:03:06
【问题描述】:

我想在 AMP 表单提交中添加列表,但我不确定是否有办法做到这一点。

在这方面需要帮助。

【问题讨论】:

标签: forms amp-html


【解决方案1】:

您可以在表单响应中呈现动态 HTML:

<form method="post"
  action-xhr="/submit"
  target="_top">
  ...
  <div submit-success>
    <template type="amp-mustache">
      Hello {{name}}!
    </template>
  </div>
</form>

查看实时示例here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-05
    • 1970-01-01
    • 2020-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多