varm1=angular.module('myapp',[]);m1.controller('Aaa',function($scope){$scope.colors=[{'id':'1','name':'red'},{'id':'2','name':'green'},{'id':'3','name':'blue'}];});{{color.name}}需要用到id對(duì)應(yīng)起來(lái)嗎?
angularjs如何實(shí)現(xiàn)點(diǎn)擊li添加class,再次點(diǎn)擊removeclass,且不相互影響
瀟湘沐
2019-04-10 20:49:25