【发布时间】:2019-08-16 08:11:39
【问题描述】:
我已经看到了一些装饰器在 cmets 中的代码,这些 cmets 被突出显示 - 请参阅来自 this code 的示例,所以我想知道这些代码行是否有任何影响。这是一个例子:
/**
* 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 () {...}
只是文档还是执行代码?
任何提示都会很棒,谢谢!
【问题讨论】:
-
提示:注释,无论其中包含什么内容,都会被 javascript 运行时忽略
标签: javascript decorator