首页 > 解决方案 > 使用 rest 语法在 Dojo 中声明此函数的参数

问题描述

SonarQube 报告建议使用其余语法来声明此函数的参数

this.inherited(参数);

根据这个建议,我尝试如下更改代码,但这似乎不起作用。控制台上的错误“declare.js:99 Uncaught TypeError: Cannot read property 'nom' of undefined”

this.inherited(...arguments);

请建议我如何解决 SonarQube 中的问题

标签: sonarqubedojo

解决方案


推荐阅读