【发布时间】:2019-01-05 18:46:13
【问题描述】:
我收到了错误
属性“action”可能不会出现在标记“FORM [method=POST]”中。 (见https://www.ampproject.org/docs/reference/components/amp-form)
尝试使用 Web 表单验证 AMP 时。
通过阅读 AMP 文档,需要 action-xhr 属性,而不是 action。在此位:<form method="post" action="./Default.aspx" id="form1" novalidate="" class="i-amphtml-form">
有没有人有这方面的经验/知道如何将action 更改为action-xhr?
【问题讨论】: