慕丝7291255
angularjs怎么获得ng-model里的value下面一个例子:姓名:<input type="text" ng-model="name"><br>性别:<input type="radio" name="sex" value="男" ng-model="sex">男<input type="radio" name="sex" value="女" ng-model="sex">女<br>兴趣:<input type="checkbox" name="interest" ng-model="interest1" ng-true-value="游泳" ng-false-value="无选中兴趣1">游泳<input type="checkbox" name="interest" ng-model="interest2" ng-true-value="旅游" ng-false-value="无选中兴趣2">旅游<input type="checkbox" name="interest" ng-model="interest3" ng-true-value="打篮球" ng-false-value="无选中兴趣3">打篮球<br><br><fieldset><legend>{{name}}的基本信息如下:</legend><br>性别:{{sex}}<br>兴趣爱好:{{interest1}} {{interest2}} {{interest3}}</fieldset>