https://meilishiyan-song.taobao.com/
摘要: $timeout 服务 AngularJS $timeout 服务对应了 JS window.setTimeout 函数。 实例 两秒后显示信息: var app = angular.module('myApp', []);app.controller('myCtrl', function($sco 阅读全文
posted @ 2016-12-29 11:55 望梦圆 阅读(976) 评论(0) 推荐(0) 编辑
摘要: AngularJS XMLHttpRequest $http 是AngularJS中的一个核心服务,用于读取远程服务器的数据。 读取JSON 文件 以下是存储在web服务器上的JSON 文件: http://www.runoob.com/try/angularjs/data/sites.php { 阅读全文
posted @ 2016-12-29 10:37 望梦圆 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-12-29 10:25 望梦圆 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 1 内置filter 9个 2 自定义filter <!DOCTYPE html><html><head><meta charset="utf-8"><script src="https://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.mi 阅读全文
posted @ 2016-12-29 10:21 望梦圆 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 自定义服务: 方法一:controller中返回值,service中return <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="https://cdn.static.runoob.com/libs/angular. 阅读全文
posted @ 2016-12-29 10:14 望梦圆 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-12-29 10:05 望梦圆 阅读(263) 评论(0) 推荐(0) 编辑
https://meilishiyan-song.taobao.com/