Amp html 用于';提交';(2) 不足(最小值:3)​;

Amp html 用于';提交';(2) 不足(最小值:3)​;,amp-html,Amp Html,我不编辑代码。 从昨天起就不能突然寄了。 Amp html将现有操作的信任级别更新为规范 <form id="myform" class="p3 hide-inputs" method="post" action-xhr="/vote" target="_blank"> <label class="ampstart-btn vote"> <input type="radio" name="vote" value="up" on="change:myform.subm

我不编辑代码。 从昨天起就不能突然寄了。 Amp html将现有操作的信任级别更新为规范

<form id="myform" class="p3 hide-inputs" method="post" action-xhr="/vote" target="_blank">
<label class="ampstart-btn vote">
<input type="radio" name="vote" value="up" on="change:myform.submit">GOOD 1</label>
<label class="ampstart-btn vote">
<input type="radio" name="vote" value="down" on="change:myform.submit">BAD 0</label>
</form>

> error.js:151 Trust for 'submit' (2) insufficient (min: 3).​​​
> Ud    @   error.js:151 f.error    @   log.js:214
> Hg.satisfiesTrust @   action-impl.js:164 Ug   @   action-impl.js:502
> f.trigger @   action-impl.js:435 (anonymous)  @   action-impl.js:259

好的1
坏0
>错误。js:151对“提交”的信任(2)不足(最小值:3)。​​​
>Ud@error.js:151 f.error@log.js:214
>Hg.satisfiesstrust@action impl.js:164 Ug@action impl.js:502
>f.trigger@action impl.js:435(匿名)@action impl.js:259

我在html页面中使用了您的代码。一个错误如下:

"action-xhr" "must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value:" "/vote"

所以,试着在
action xhr=“//www.yoursite.com/vote”

中更改
action xhr=“/vote”
,我在html页面中使用了您的代码。一个错误如下:

"action-xhr" "must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value:" "/vote"
因此,在
action xhr=“//www.yoursite.com/vote”