手动添加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);

2.number只能输入数字、小数的限制

onkeyup="this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')"

3.file类型的input,上传文件时,change事件

onchange="angular.element(this).scope().fileChanged(this)";

4.判断是否是空对象

angular.equals({}, obj);

5.隐藏提交input

<input type="hidden" class="form-control" name="model.name" ng-model="form.formdata[model.name]" ng-init="form.formdata[model.name]=model.defaultValue"/>