Angular 使动态生成的 ng-click 生效
var html = "<div ng-click='test();'></div>";
var content = $compile(html)($scope);
$('body').append(html);
var html = "<div ng-click='test();'></div>";
var content = $compile(html)($scope);
$('body').append(html);