会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tinyphp
发表是吸收的利器!胡适先生说的
CnBlogs
Home
Contact
Admin
Subscription
2014年2月12日
this和$(this)的关系
环境关键字this引用的是DOM元素$(this)是jQuery对象下面点击按钮分别alert一下alert(this);alert($(this));获取DOM对象的属性id,可以$(this).attr('id');或this.id;他们的关系为 $(this)[0]==this
Read More
posted @ 2014-02-12 16:09 tinyphp
Views(278)
Comments(0)
Diggs(0)
公告