上一页 1 ··· 101 102 103 104 105 106 107 108 109 ··· 222 下一页
摘要: 正因为有了npm,我们只要一行命令,就能安装别人写好的模块 。 阅读全文
posted @ 2018-01-02 16:48 Sharpest 阅读(1335) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ AngularJS 路由也可以通过不同的模板来实现。 $routeProvider.when 函数的第一个参数是 URL 或者 URL 正则规则,第二个参数为路由配置对象。 路由配置对象语法规则如下: 参数说明 阅读全文
posted @ 2018-01-02 14:24 Sharpest 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ Bootstrap 你可以在你的 AngularJS 应用中加入 Twitter Bootstrap,你可以在你的 <head>元素中添加如下代码: <link rel="stylesheet" href="/ 阅读全文
posted @ 2018-01-02 14:14 Sharpest 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ $http 是 AngularJS 中的一个核心服务,用于读取远程服务器的数据。 使用格式: 简写方法 POST 与 GET 简写方法格式: 此外还有以下简写方法: $http.get $http.head $ 阅读全文
posted @ 2018-01-02 14:00 Sharpest 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ 1. 你可以创建自定义服务,链接到你的模块中: 1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <meta charset="utf-8"> 6 <script src="htt 阅读全文
posted @ 2018-01-02 13:49 Sharpest 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ 什么是服务? 在 AngularJS 中,服务是一个函数或对象,可在你的 AngularJS 应用中使用。 AngularJS 内建了30 多个服务。 有个 $location 服务,它可以返回当前页面的 UR 阅读全文
posted @ 2018-01-02 13:42 Sharpest 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ 1. 阅读全文
posted @ 2018-01-02 11:21 Sharpest 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ 1. 2. 阅读全文
posted @ 2018-01-02 11:16 Sharpest 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ 1. Scope(作用域) 是应用在 HTML (视图) 和 JavaScript (控制器)之间的纽带。 Scope 是一个对象,有可用的方法和属性。 Scope 可应用在视图和控制器上。 2. 当在控制器中 阅读全文
posted @ 2018-01-02 11:05 Sharpest 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/best/tag/Angular/ 1. 元素名 <runoob-directive></runoob-directive> 属性 <div runoob-directive></div> 类名 <div class="runoob-direct 阅读全文
posted @ 2018-01-02 10:49 Sharpest 阅读(172) 评论(0) 推荐(0) 编辑
上一页 1 ··· 101 102 103 104 105 106 107 108 109 ··· 222 下一页