Does the @ symbol mean anything in javascript?

后端 未结 4 360
误落风尘
误落风尘 2021-01-29 04:48

I noticed the @ symbols mentioned in many javascript files and couldn\'t figure out the significance of this character there. for example:

/**
    * Call         


        
4条回答
  •  一整个雨季
    2021-01-29 05:28

    That comment is JSDoc. The @param callbackfn means "what follows is the description of the argument callbackfn".

    Your IDE might be able to parse that format or you can use jsdoc to generate documentation from that.

提交回复
热议问题