angular笔记_7】的更多相关文章

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script> &l…
/** * Created by Administrator on 2016/5/3 0003. */ ng-app是告诉angularjs编译器把该元素当作编译的根 //定义模块 var myApp=angular.module('index', []) //定义控制器 myApp.controller('haha', function ($scope) { $scope.message = 'World'; }) /*AngularJS 表达式 AngularJS 表达式写在双大括号内:{{…
--select-- 设置默认选中值方法: <select ng-model="url" ng-options="x.url as x.site for x in sites"> <option value>--</option> </select> var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $s…
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script><…
全选和反选 BUG:当鼠标点击其中一个选项后,在点击全选按钮,该选项失效 <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angul…
angular.isString();是否字符串 angular.isNumber();是否数字 angular.isArray();是否数组 angular.isDate();是否日期/时间 angular.isDefault();是否被定义 angular.isunDefault();是否未定义 angular.isFunction();是否函数 angular.isObject();是否对象 angular.isElement();是否元素 angular.equals();比较两个数 a…
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script><…
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script><…
第一个angular文件<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script> <div ng-app="hd" ng-controller="ctrl">    <h2>{{name}}</h2>    <h1 ng-bind="name"…
数据绑定这块儿没啥说的,简单两个例子带过了. Hello World: <!DOCTYPE html> <html ng-app> <head> <title>Simple app</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script> </head>…