【问题标题】:Typescript property note打字稿属性说明
【发布时间】:2018-05-17 03:49:28
【问题描述】:

我的项目收到此警告。我错过了什么?

[tslint] unused expression, expected an assignment or function call 
(no-unused-expression)

属性选择列表

【问题讨论】:

  • 您正在评估 2 个变量的相等性,但不要对结果进行任何处理。

标签: angular typescript components


【解决方案1】:

使用= 赋值而不是==

【讨论】:

    猜你喜欢
    • 2020-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-23
    • 1970-01-01
    • 2019-05-28
    • 1970-01-01
    • 2021-04-29
    相关资源
    最近更新 更多