html

<a class="label label-success" onclick="fastform({$row['id']},$(this))">提交</a>

函数内

function fastform(id,$this) {
//对象已经传递进来
}

How to use $(this) in functions?

作者 铁血 汉子 2017年3月6日
2024/04/28/07:12:24am 2017/3/6/18:05:38
0 2713