1、浏览器参数传回的参数是字符串,判断之前要进行转换,使用eval()方法
$scope.showEquipment = ( $location.search()['showEquipmen'] && eval( $location.search()['showEquipmen'] ) ) || false;
1、浏览器参数传回的参数是字符串,判断之前要进行转换,使用eval()方法
$scope.showEquipment = ( $location.search()['showEquipmen'] && eval( $location.search()['showEquipmen'] ) ) || false;