1. 判断是否是空对象

1
angular.equals({}, obj);

2.隐藏提交input

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