오늘도 좋은아침~!!!

개발/JQuery

$() vs []

리히 2024. 8. 31. 20:42
반응형
  • $()
  • $('')
  • $("")
  • $(``)
  • $('.a')
    • Object
    • object
    • obj
  • obj = $('.a')
    • obj
    • obj[0]
    • `${obj[0]}`
    • $(obj[0])
  • let obj = $('.a')
    • typeof obj 👉 object(typeof)
    • obj 👉 Object(Prototype)
    • obj[0] 👉 Element(JS)
    • `${ obj[0] }` 👉 string
    •  
    • $( obj[0] ) 👉 Element(JQ)
  • []
  • ['']
  • [""]
  • [``]
  • [`a`]
    • Array
    • array
    • arr
  • arr = [`a`]
    • arr
    • arr[0]
    • `${arr[0]}`
    • $(`${arr[0]}`)
  • let arr = [`a`]
    • typeof arr 👉 object(typeof)
    • arr 👉 Array(0)(Prototype)
    • arr[0] 👉 string
    • `${ arr[0] }` 👉 string
    • $( `${ arr[0] }` ) 👉 Element(JQ)
    •  

 

 

 

 

728x90
반응형