Angularjs 动态创建属性

循环输出
for (var i = 1; i < 7; i++) {
var res='res'+i;
$scope[res]=i;	
}

  

原文地址:https://www.cnblogs.com/kgdjgd/p/6297398.html