angularJs 中每一个scope都会有一个自身的iD,可通过本地浏览器console.log打印查看.
//通过ID获取Scope function getScopeById(id) { var element; $('.ng-scope').each(function(){ var scope = angular.element(this).scope(), sid = scope.$id; if(sid == id) { elem = angular.element(this).scope(); return false; // stop looking at the rest } }); return element; }