摘要:
html事件中传值: <button ng-click="showColor('green')">变色</button> js中取值: $scope.showColor=function($routeParams){ alert($routeParams) } html中赋值:<a href="#/ 阅读全文
摘要:
示例1 <!DOCTYPE html> <html ng-app> <head> <meta charset="UTF-8" /> <title>AngularJS的特性之:双向绑定</title> <!--引入官方标准的angular. min.js --> <script src="https: 阅读全文