angular的location服务的使用
来源:互联网 发布:在数据库表中设置null 编辑:程序博客网 时间:2024/05/21 15:04
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>http的使用</title><script src="day2/src/angular.js"></script><style type="text/css"></style></head><body><div ng-app="fristApp"><div ng-controller="fristController"></div></div></body><script type="text/javascript">var myApp = angular.module('fristApp',[]);myApp.config(function(){})// location 可以操作地址栏 absUrl()可以获取完整的地地址//myApp.controller('fristController',function($scope,$location){console.log($location.absUrl())// 可以读写##后面地址 ##test//$location.hash('test')//console.log($location.hash())// #/test//$location.path('test')//console.log($location.path());//console.log($location.port());//console.log($location.protocol());// 刷新页面//$window.location.href = });myApp.controller('secondController',function($scope){console.log("fuji")})</script></html>
0 0
- angular的location服务的使用
- angular $location服务的配置
- angular $location服务
- angularjs的 $location 服务
- angular的$interpolate服务
- angular的provider服务
- angular的$http服务
- angular的服务小总结
- angular 简单的服务应用
- Android Location的使用
- window.location的使用
- Core Location的使用
- angular的service服务和factory服务
- Angular的服务之自定义服务
- angular controller的使用
- angular foreach的使用
- angular ngOptions的使用
- angular directive的使用
- HDU 1850 Being a Good Boy in Spring Festival【标准Nim博弈,先手赢的方案数】
- 数据结构 最大值减去最小值小于或等于num的子数组数量
- Android Volley完全解析
- 前端开发资源汇总
- mac版抓包工具charles使用技巧
- angular的location服务的使用
- B - Tricky Sum
- 【POJ 3259】Wormholes(最短路SPFA/Bellman_Ford)
- Tricky Sum
- C - Patrick and Shopping
- 浅谈Java 的static关键字
- 1006. 换个格式输出整数 (15)
- Android开发工具——Gradle知识汇总
- PAT-B 1014. 福尔摩斯的约会