数据刷新,页面未刷新问题:若是是不经过angular 方法更改的数据,须要手动刷新一下:$scope.$apply();app
挂在方法到window便于给外部调用:window.functionio
angular深拷贝:let xxx = angular.copy(XXX)function