a标签里写javascript有bug,当写标签内容为函数时,里头获取的this指代的是window
<a class="add delete" href="javascript:;" onclick="deleteLink(this)">删除</a>
function deleteLink(_self){
console.log($(_self));
}
a标签里写javascript有bug,当写标签内容为函数时,里头获取的this指代的是window
<a class="add delete" href="javascript:;" onclick="deleteLink(this)">删除</a>
function deleteLink(_self){
console.log($(_self));
}