阅读:432回复:0
[typescript]error: The left-hand side of an assignment expression may not be an optional property access.
错误:
The left-hand side of an assignment expression may not be an optional property access. 代码: businessName.value = null; counselorName.value = null; resInfName.value = null; 解决方案: 使用类型断言, 把null 和 undefined的值都排除掉, 代码如下: businessName!.value = null; counselorName!.value = null; resInfName!.value = null; |
|
|