标签:$scope div options end lse class name obj bsp
手动添加select
$scope.editSelectList = $scope.listobj[_columnName]; $scope.editValue = $scope.editValue + ""; $div = '<div class="edit-element"><select class="form-control width-100" ng-model="editValue" ng-options="k as v for (k,v) in editSelectList"></select></div>'; var template = angular.element($div); var $element = $compile(template)($scope); $(_th).append($element);
标签:$scope div options end lse class name obj bsp
原文地址:http://blog.51cto.com/dd118/2149159