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

后端 未结 8 2280
深忆病人
深忆病人 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:46

    It could be using ECMAScript for XML (ECMA-357 standard) which would imply the double quotes are a XPath operator.

    See ECMAScript for XML

提交回复
热议问题