search

Home  >  Q&A  >  body text

$('div')和$(div)的区别是什么呢?什么时候div加引号,什么时候div不加引号?

$('div')和$(div)的区别是什么呢?什么时候div加引号,什么时候div不加引号?

素颜素颜2873 days ago1199

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:52:52

    What is the difference between

    $('div') and $(div)? When do divs have quotes and when do divs not have quotes? -PHP Chinese website Q&A-What is the difference between $('div') and $(div)? When do divs have quotes and when do divs not have quotes? -PHP Chinese website Q&A

    Take a look around and learn.

    reply
    0
  • 迷茫

    迷茫2017-01-12 14:57:55

    $('div')是jquery直接获取元素;

    $(div)是将dom对象转换成jquery对象!


    reply
    0
  • Cancelreply