你描述得不是太清楚,我猜你要的代码大概如下boolean ngashow = a.equals(b+"."+c); ngashow 的结果为 true 或 falseng-show这个变量不能有“-” , 所以改为 ngashow 了