angularjs 求两变量之和
<img src="https://angularjs.org/img/AngularJS-large.png" height="50px" weight="50px"/> <h3>Sum of two Numbers using AngularJS</h3> <div ng-app=""> <h3>Using Double Negation</h3> <p>First Number: <input type="text" ng-model="a" /> </p> <p>Second Number: <input type="text" ng-model="b" /> </p> <p>Sum: {{ a -- b }}</p> <h3>Using Input Type Number</h3> <p>First Number: <input type="number" ng-model="c" /> </p> <p>Second Number: <input type="number" ng-model="d" /> </p> <p>Sum: {{ c + d }}</p> </div>