我有以下带有Angular JS指令的HTML代码:
$("#content:contain('I will')").each(function() {
if($(this).find('.testimonialsCode').length == 0){
var replaced = $(this).html().replace(/I will/g, " We will ");
$(this).html(replaced);
}
});
控制器:
<div ng-controller="SongsController">{{genres}}</div>