$(this)是jquery对象,能调用jquery的方法,例如click(), keyup()。
而this,则是html元素对象,能调用元素属性,例如this.id,this.value。
例如假设已经使得this和$(this)都指向了input对象了,若要获得input的值,可以this.value,但$(this)就得$(this).val()。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-06-13
  • 2022-12-23
  • 2021-06-19
猜你喜欢
  • 2022-12-23
  • 2021-11-09
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案