I do computer things and sometimes write about it here.
I'm a Software Engineer in Shanghai, China and I ship code at LingoChamp.
April 23, 2014
在Angular js的scope中用watch查看输出和变化:
$scope.cart = 1; $scope.$watch('cart', function() { console.log('=========='+ (new Date) + '======'); console.log($scope.cart); });