2012-04-17 89 views

回答

2

也许你应该试着格式化

<script> 
    function imgFormatter(s) { 
     return '<img src="' + s + '"/>'; 
    } 
</script> 
<table data-dojo-type="dojox.grid.DataGrid"> 
    <thead> 
     <tr> 
       <th field="col" formatter="imgFormatter"></th> 
     </tr> 
    </thead> 
</table>