60

前端: jquery事件绑定及选择器使用动态变量-hqtmit的博客&&infaaf

 6 years ago
source link: http://blog.51cto.com/13606158/2074340
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
html代码如下目标点击ajax删除,获取整行tr的id,(后端部分略,传递id处理即可),页面删除<trmyid="{{cls.id}}">....<td><aonclick="rmStu(this);"class="abc"href="#">ajax删除</a></td>【方式1】由onclick触发,点击位置由this传递动态变量由

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK