ecshop后台,listtable.js使用

1.先载入listtable.js

2.html代码

  a.  <a href="javascript:listTable.sort('goods_number'); "></a> 或者<a href="javascript:listTable.sort('order_sn', 'DESC'); "></a>

  b.  <a onclick="listTable.remove({$warehouse.id}, '您确认要删除这条记录吗')"></a>

  c. <span onclick="listTable.edit(this, 'edit_attr_name', {$attr.attr_id})"></span>

  d. <input onclick='listTable.selectAll(this, "back_id")' type="checkbox"/>

  e. <img src="images/{if $goods.is_on_sale}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_on_sale', {$goods.goods_id})" />

  f. <a href="javascript:listTable.gotoPageNext()"></a>

  g. <select id="gotoPage" onchange="listTable.gotoPage(this.value)">

原文地址:https://www.cnblogs.com/wesky/p/5082451.html