最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
jquery ajax回调函数中调用$(this)无法调用的问题解决方法
时间:2022-11-14 22:03:28 编辑:袖梨 来源:一聚教程网
在调用函数前先把$(this)存入变量,然后再在回调函数中使用就没问题了。
代码如下 | 复制代码 |
$(document).ready(function(){ $(“.del”).click(function () { delid=$(this).attr(‘delid’); }else{ |