<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta charset="UTF-8">
<title>angular</title>
<script src="http://apps.bdimg.com/libs/angular.js/1.5.0-beta.0/angular.js"></script>
</head>
<body>
<div ng-controller="myCtrl">
<ul ng-repeat="x in yesterday">
<li>价格:{{x.money}}</li>
<li>价值:{{x.price}}</li>
<li>评价:
<input type="radio" name="1"/>
{{x.ecx}}
<input type="radio" name="1"/>
{{x.good}}
<input type="radio" name="1"/>
{{x.bad}}
</li>
</ul>
</div>
<script>
var app=angular.module('myApp',['ng']);
app.controller('myCtrl',function($scope){
$scope.yesterday=[
{money:"50",price:"500",ecx:"优",good:"良",bad:"差"},
{money:"60",price:"500",ecx:"优",good:"良",bad:"差"},
{money:"70",price:"500",ecx:"优",good:"良",bad:"差"},
{money:"70",price:"500",ecx:"优",good:"良",bad:"差"}]
});
</script>
</body>
</html>
倚天杖
相关分类