我已经尝试了一切。几个小时后......我发现基本的==声明没有工作
这是代码
console.log('The from1 section', from1.section);
console.log('The sender1 section', sender1.section);
if (from1.section == sender1.section) {
console.log('It worked');
} else {
console.log('They are not the same');
}
这是输出
2015-02-01T02:19:46.371814+00:00 app[web.2]: They are not the same
2015-02-01T02:19:46.371652+00:00 app[web.2]: The from1 section ["54baf92d2b54840900dcb971"]
2015-02-01T02:19:46.371761+00:00 app[web.2]: The sender1 section ["54baf92d2b54840900dcb971"]