What does ‘::’ (double colon) do in JavaScript?

后端 未结 8 2336
深忆病人
深忆病人 2020-12-01 12:10

The documentation of some JavaScript APIs shows the following snippets as an example of how to invoke some function:

8条回答
  •  一个人的身影
    2020-12-01 12:51

    In which example did you see that? So far, JavaScript does not have a double colon operator!

    The double colon replaced the single-colon selectors for pseudo-elements in CSS3 to make an explicit distinction between pseudo-classes and pseudo-elements. But that is CSS3, not JavaScript! Not At ALL!

提交回复
热议问题