为了账号安全,请及时绑定邮箱和手机立即绑定

jquery.fn.init是什么意思

jquery.fn.init是什么意思

qq_杀意隆_0 2017-10-23 10:29:14
查看完整描述

1 回答

?
cxxyjsj

TA贡献119条经验 获得超22个赞

jQuery.fn = jQuery.prototype

jQuery.fn.init实际上是jquery对象的构造方法

查看完整回答
反对 回复 2017-10-23
  • qq_杀意隆_0
    qq_杀意隆_0
    $('selector').constructor===$ //返回true $('selector').constructor===jQuery.fn.init //返回false 这说明jquery对象的构造方法应该是$,不是jQuery.fn.init吧
  • cxxyjsj
    cxxyjsj
    可以看下jquery源码, constructor是可以覆盖的。
  • 1 回答
  • 0 关注
  • 2263 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号