手动添加select
$scope.editSelectList=$scope.listobj[_columnName]; $scope.editValue=$scope.editValue+""; $div='<divclass="edit-element"><selectclass="form-controlwidth-100"ng-model="editValue"ng-options="kasvfor(k,v)ineditSelectList"></select></div>'; vartemplate=angular.element($div); var$element=$compile(template)($scope); $(_th).append($element);原文链接:https://www.f2er.com/angularjs/144207.html