$scope.data=[{name:'泠泠在路上', url:'boke.com'},{name:'泠泠似水', url:'zlm.com'}] //數(shù)組數(shù)據(jù)遍歷 angular.forEach($scope.data,function(v, k) { v.url ='www.'+v.url; console.log(v);//讀到所有的數(shù)組數(shù)據(jù) console.log(k);//讀到所有的對象的下標(biāo) ...
www.dbjr.com.cn/article/1484...htm 2025-5-27