可乐博客

chrome调试Angularjs

var a = $$(selector)[0];
var scope = angular.element(a).scope();
console.log(scope.vm)

随笔