前端打印console

很多时候,我们都想知道,是否已经选中或得到数据时,我们可以利用console 打印出来。console有几种方式使用。具体有:

      console.log($scope.getParkId);
           console.log($scope.getParkId);
           console.debug($scope.getParkId);
           console.info($scope.getParkId);
           console.warn($scope.getParkId);
           console.error($scope.getParkId);

结果截图:

原文地址:https://www.cnblogs.com/liziyou/p/6477435.html