AMP在放大器状态和放大器位置观察方面存在问题。
<amp-state id="myState">
<script type="application/json">
{
"visible": "n"
}
</script>
</amp-state>
<amp-state id="variableChange">
<script type="application/json">
{
"visible": "y"
}
</script>
</amp-state>
<amp-position-observer on="enter:variableChange"
layout="nodisplay">
</amp-position-observer>
此代码返回一个奇怪的错误:
url.js:348
Trust for 'activate' (1) insufficient (min: 100).