Trying to see how method is called ie. if $('.test') or $('.test').hide() , if first one return element if second return object

前端 未结 0 1256
自闭症患者
自闭症患者 2021-01-14 06:42

I am trying to recreate the $() selector and so far all is well. One thing I am hung up on is how to return an element rather than the object if no method is being called.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题