问题描述
主要是dataview的tp1里img的问题,代码如下: var tpl = new Ext.XTemplate('<tpl for=".">', '<div class="thumb-wrap">', '<div class="thumb"><img id="{id}" width="194" height="146" src="js/ext/resources/images/default/s.gif" onerror="this.src="js/ext/resources/images/default/s.gif"" ></div>', '<div class="thumb" ></div>', '</div>', '</tpl>', '<div class="x-clear"></div>'); 问题补充:<div class="quote_title">lixiaokui11 写道</div><div class="quote_div">onerror里面双引号的嵌套是不对的<br />onerror="this.src='js/ext/resources/images/default/s.gif'"</div><br />那要怎样呢?
解决方案
onerror里面双引号的嵌套是不对的onerror="this.src='js/ext/resources/images/default/s.gif'"
时间: 2024-10-12 04:27:21