私はJavaScriptの重いアプリケーションで作業しており、次のコードがあります:
function displayingNotes() {
if (!($scope.overseasTravelTask.RegisteredKeeperName.toLowerCase()
.indexOf("zenith") > -1 ||
$scope.overseasTravelTask.RegisteredKeeperAddressLine1.toLowerCase()
.indexOf("zenith")
)
)
{
$scope.calloutClass = 'callout-danger';
$scope.calloutMessage = 'We (Zenith) cannot provide this vehicle with the necessary documents.';
$scope.disableNextBtn = true;
}
else
{
$scope.calloutMessage = 'Please ask driver about this.';
}
}
if ステートメントについては、ブレークポイントを配置し、Chrome コンソールでロジックをチェックしています。ロジックは正しいように見えますが、F10 ボタンをクリックすると、if ステートメント内に入ることが期待され、代わりにそれを飛び越えます!