Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 div 中渲染 html,在渲染后将其放入控制器的范围内?
我是 Angular 的新手,虽然我知道指令的基础知识,但我似乎无法在渲染后获得渲染的 html,任何可以指导解决方案的链接也将不胜感激。
利用
var html = angular.element(':visible').html()