私人领地

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)">

posted @ 2015-12-28 14:32  狂奔的蜗牛Snails  阅读(1718)  评论(0编辑  收藏  举报