Amp html amp img未在amp列表中呈现为空状态
我正在实现一个Amp html amp img未在amp列表中呈现为空状态,amp-html,Amp Html,我正在实现一个amp列表,其中包含amp-img,src来自amp-state。代码如下: <amp-state id="cars" [src]="'/api/cars/?id=' + (carId || '')"> <script type="application/json"> [] </script> </amp-state> <amp-list id="car-list" layout="fixed-
amp列表
,其中包含amp-img
,src来自amp-state
。代码如下:
<amp-state id="cars" [src]="'/api/cars/?id=' + (carId || '')">
<script type="application/json">
[]
</script>
</amp-state>
<amp-list id="car-list" layout="fixed-height" src="cars" [src]="cars" height="0" [height]="200 * cars.length" items=".">
<template type="amp-mustache">
<li>
<h4 class="margin-bottom10">
<a target="_blank" href="{{Url}}" class="carName">{{CarName}}</a>
</h4>
<div class="carThumb">
<a class="imgholder" target="_blank" href="{{Url}}">
<amp-img layout="responsive" width="50" height="50" src="{{HostUrl}}{{^HostUrl}}https://img.cdn.com/{{/HostUrl}}300x300{{ImgPath}}{{^ImgPath}}/grey.gif{{/ImgPath}}" />
</a>
</div>
</li>
</template>
</amp-list>
在本例中,正在渲染图像,但我在与amp list
相关的cosole中遇到以下错误:
log.js:162 New renderItems_, continuing render pass...
这个错误的原因是什么?正确的方法是什么
log.js:162 New renderItems_, continuing render pass...