if (manager.getProductType() === manager.TYPE_HARDWARE) {
anotherManager.setTransactionType(manager.TYPE_HARDWARE);
} else {
anotherManager.clearAllTransactionTypes();
}
出于某种原因,当我在firebug中调试和跟踪时,if和else都会执行。可能导致这种情况的任何想法?
manager.getProductType()计算为“HARDWARE” manager.TYPE_HARDWARE评估为“HARDWARE”