字符串比较对象相等使用“==”,比较内容相等时用“equals()”方法。

demo:

小程序

TAG标签: 微信小程序判断字符串是否相等

http://www.xiaochengxub.com/read-105018.html