1、在浏览器中打开调试控制台
2、原理:在Control中,使用angular.element()可以返回一个jquery对象,如angular.element(document).ready(function(){});
其中document是指使用js获取的html node,
如:

var sidebar = document.getElementsById('sidebar');
var scope = angular.element(sidebar).scope();

angularjs浏览器控制台获取元素调试以及angular.element()用法

相关文章:

  • 2021-06-04
  • 2022-01-07
  • 2022-02-08
  • 2022-12-23
  • 2021-12-26
  • 2022-01-07
  • 2021-11-21
  • 2021-10-20
猜你喜欢
  • 2022-01-07
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案