注释中的修饰符对代码有影响吗?

Web*_*man 2 javascript decorator

我看过一些代码,其中的修饰符在注释中,这些注释突出显示了-请参见示例,示例来自此代码,因此我想知道这些代码行是否有任何影响。这是一个例子:

/**
 * Instanciate a new Payment.
 * @param payplugApi Object  The PayplugAPI with sucessfull authentication
 * @param paymentTracker String  A payment tracker (id) that will be send and received by PayPlug API to follow the payment. This tracked will be inserted in metadata
 * @param payment   Object  The payment options. More informations here : https://www.payplug.com/docs/api/apiref.html?powershell#create-a-payment
 * @return [nothing]
 * @see PayPlugAPI.authenticate The authentication method
 */
var Payment = function () {...}
Run Code Online (Sandbox Code Playgroud)

它仅仅是文档还是执行代码?

任何提示都会很棒,谢谢!

spe*_*der 6

这些是JSDoc注释,为了生成文档(以及IDE中的“悬停”提示等)而进行了解析。他们与装饰者没有关系。