-
判断是否是空对象
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"
/>
|
本文转自 爱笑嘚蛋蛋 51CTO博客,原文链接:http://blog.51cto.com/dd118/1949618,如需转载请自行联系原作者