What does the selector syntax mean in $( “
” ).text( message )

前端 未结 6 1617
旧巷少年郎
旧巷少年郎 2021-01-03 15:50

What does the selector

syntax mean in this code? I\'ve seen selectors like div or #someId but I\'m confused what the
6条回答
  •  孤城傲影
    2021-01-03 15:57

    indicates that the div is a self closing div. It's basically shorthand for $('
    ')
    .

    Any browser that supports XHTML supports the self-closing syntax on all elements.

提交回复
热议问题