Difference between jQuery’s .hide() and setting CSS to display: none

后端 未结 7 1620
天涯浪人
天涯浪人 2020-11-30 23:19

Which am I better off doing? .hide() is quicker than writing out .css(\"display\", \"none\"), but what’s the difference and what are both of them a

7条回答
  •  自闭症患者
    2020-11-30 23:52

    See there is no difference if you use basic hide method. But jquery provides various hide method which give effects to the element. Refer below link for detailed explanation: Effects for Hide in Jquery

提交回复
热议问题