Html Amp Post转到当前网址?.Html Amp Post显示当前页面的网址?
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-form" rc="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
</head>
<body>
<form class="-amp-form" method="post" target="_top" novalidate="" action-xhr="/Home/About">
<input name="name" class="data-input" required="" type="text" placeholder="Name...">
<input name="email" class="data-input" required="" type="email" placeholder="Email...">
<input class="button button-primary" type="submit" value="Subscribe">
</form>
</body>
</html>
鼠标悬停在浏览器中输入提交按钮,显示当前网址,点击按钮显得无能为力(使用httpFiddler没有post或get请求发生的历史)。该解决方案是一个标准的MVC 5应用程序,其布局更改为在Html声明和脚本中包含放大器符号。任何想法为什么它会显示当前的网址,当鼠标悬停在按钮上,例如https://localhost:44331/Home/Index,并且当单击表单按钮时,不会使用上面的代码发表任何帖子?
这里是我已经从以下资源之一:https://ampbyexample.com/components/amp-form/
你可以找到类似于你的问题的追踪问题[这里](https://github.com/ampproject/amphtml/issues/6619) – kul3r4