jQuery中$this和$(this)的区别

要写一个点击弹窗任意地方,关闭弹窗。点击事件写标签在元素上 onclick =  closepop(this),这时候很容易搞不清楚怎么去获取当前元素
function closepop(e){
     var $this  =$(e);
     $this.fadeOut();
}
// this其实是一个Html 元素。
// $this 只是个变量名,加$是为说明其是个jquery对象。
// 而$(this)是个转换,将this表示的dom对象转为jquery对象,这样就可以使用jquery提供的方法操作。
原文地址:https://www.cnblogs.com/untiring/p/7795135.html