onclick() 获取$(this)
// 在()中加this可以在function中获取 ( t h i s ) , 否 则 获 取 (this),否则获取 (this),否则获取(this)==window
<div onclick="check(this)"></div>
function check(thisDiv){
thisDiv == '<div onclick="check(this)"></div>'
}
了解更多请关注公众号
onclick() 获取$(this)
// 在()中加this可以在function中获取 ( t h i s ) , 否 则 获 取 (this),否则获取 (this),否则获取(this)==window
<div onclick="check(this)"></div>
function check(thisDiv){
thisDiv == '<div onclick="check(this)"></div>'
}
了解更多请关注公众号