2016-09-26 49 views
0

正在寫一個條件,但不幸地得到ReferenceError:在賦值中無效的左側,我不知道我在這裏做錯了什麼..有人可以幫助我「ReferenceError:在賦值中無效的左側」當使用邏輯和

 if((!isEmpty($rootScope.appState.template.contentSelections.upload.JSON))) && (($rootScope.appState.template.contentSelections.Options.DELIVERY_METHOD == 'email' && $scope.generated.deliveryChannels = "EE/ER")|| ($rootScope.appState.template.contentSelections.Options.DELIVERY_METHOD == 'email_print' && $scope.generated.deliveryChannels = "EE/ER/Print"))) 

我沒有看到任何錯誤在這裏做什麼..但仍然收到此錯誤

+1

在年底'錯過的= ... && $範圍.generated.deliveryChannels =「EE/ER/Print」)))' – Teemu

+0

ohh我的壞..多謝 –

+2

兩次.............................. – RobG

回答

1
if((!isEmpty($rootScope.appState.template.contentSelections.upload.JSON))) && (($rootScope.appState.template.contentSelections.Options.DELIVERY_METHOD == 'email' && $scope.generated.deliveryChannels == "EE/ER")|| ($rootScope.appState.template.contentSelections.Options.DELIVERY_METHOD == 'email_print' && $scope.generated.deliveryChannels == "EE/ER/Print"))) 

在結尾和中間

相關問題