jQuery: this.attr() not a function?

前端 未结 2 1604
眼角桃花
眼角桃花 2020-12-01 23:09

I\'m not quite sure if I\'m not using this in the correct scope or what, but I have a script that basically captures a link click and causes the page to fade out before goin

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 00:01

    Use: $(this).attr instead of this.attr

    This forces it into the context of jQuery.

提交回复
热议问题