鸿蒙开发:Error message:is not callable

991 阅读1分钟

鸿蒙开发中,报如下错误:

Reason:TypeError
Error name:TypeError
Error message:is not callable

这是由于向@link等双向传递的参数,传了无法callable的参数。 解决办法是,按引用传递参数。该使用$$修饰的变量,用$$修饰。

参考:developer.huawei.com/consumer/cn…