无刷新 减少服务器负担 jQuery remove方法
来源:互联网 发布:随机化算法 编辑:程序博客网 时间:2024/06/07 00:01
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<table class="table table-info mb30 table-hover">
<thead>
<tr>
<th width="20%">名称</th>
<th width="30%">积分</th>
</tr>
</thead>
<tbody>
<volist name="data1" id="v">
<tr id="DEL_{$v.id}">
<td>{$v.name}</td>
<td>{$v.point}</td>
<td>
<a href="javascript:void(0);" onclick="EditShop('{$v.id}')">修改</a> |
<a href="javascript:void(0);" onclick="DelShop('{$v.id}')">关闭</a>
</td>
</tr>
</volist>
</tbody>
</table>
<script type="text/javascript" src='/Public/Mobile/default/js/jquery-1.9.1.min.js'></script>
<script>
function DelShop(id)
{
</script>
</body>
</html>
<html>
<head>
</head>
<body>
<table class="table table-info mb30 table-hover">
<thead>
<tr>
<th width="20%">名称</th>
<th width="30%">积分</th>
</tr>
</thead>
<tbody>
<volist name="data1" id="v">
<tr id="DEL_{$v.id}">
<td>{$v.name}</td>
<td>{$v.point}</td>
<td>
<a href="javascript:void(0);" onclick="EditShop('{$v.id}')">修改</a> |
<a href="javascript:void(0);" onclick="DelShop('{$v.id}')">关闭</a>
</td>
</tr>
</volist>
</tbody>
</table>
<script type="text/javascript" src='/Public/Mobile/default/js/jquery-1.9.1.min.js'></script>
<script>
function DelShop(id)
{
$("#DEL_"+id).remove();
//window.location.reload();增加一次服务器请求,生产环境要求较高的时候,尽量减少服务器的请求。
</script>
</body>
</html>
0 0
- 无刷新 减少服务器负担 jQuery remove方法
- jquery无刷新添加和删除input输入框 增加减少input框
- jquery无刷新添加和删除input输入框 增加减少input框
- jquery实现ajax无刷新读取服务器返回数据
- jquery动态无刷新
- jquery 无刷新
- JQuery 无刷新查询
- jQuery 无刷新分页
- jquery无刷新分页
- jquery 无刷新翻页
- 无刷新分页jquery
- jquery 调用ashx方法,实现页面无刷新
- asp.net中刷新和无刷新(JQuery实现)浏览图片的方法
- jquery实现无刷新提交
- jquery+ajax无刷新翻页
- jQuery提交表单, 无刷新
- jquery异步提交无刷新
- JQuery+Ajax无刷新分页
- 保持专注力
- Arcgis10.2安装出现error1402的解决办法
- 技术学习路线
- 【BZOJ1015】星球大战 并查集
- Stack Queue Vector ArrayList
- 无刷新 减少服务器负担 jQuery remove方法
- 第七届蓝桥杯C/C++B组省赛部分题目
- java.io.FileNotFoundException: open failed: EACCES (Permission denied)
- JSON之Jackson(二)
- 每天学习一点新东西
- 设计模式系列总结之策略模式
- java之FileOutputStream
- PHP取整,四舍五入取整、向上取整、向下取整、小数截取。
- 给人类支三招对付AlphaGo