Does the @ symbol mean anything in javascript?

后端 未结 4 396
误落风尘
误落风尘 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:14

    It's only for documentation purpose.

    @param is here to indicate which param your function will take for exemple. There is few more, like @author, etc.

提交回复
热议问题