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

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

    Perhaps it's a typo, and the whole thing is expected to be in quotes.

    0 讨论(0)
  • 2020-12-01 12:55

    I am guessing that the parameter list for foo.DoIt() is generated by code, and one the values was empty.

    0 讨论(0)
提交回复
热议问题