What does ‘::’ (double colon) do in javascript for events?

前端 未结 6 1675
攒了一身酷
攒了一身酷 2020-12-07 01:33

I saw this code and I\'m scratching my head trying to decide how it works.



        
6条回答
  •  忘掉有多难
    2020-12-07 02:10

    As mentioned in this answer of What does ‘::’ (double colon) do in javascript?

    :: is a ES2016 operator that is shorthand for bind. This answer intends to assist those that have encountered :: since the ES2016 spec, however, does not apply to the context in which this question was asked.

提交回复
热议问题