<!DOCTYPE html>@H_404_1@
<html>@H_404_1@
<head>@H_404_1@
<Meta charset="utf-8">@H_404_1@
<Meta http-equiv="X-UA-Compatible" content="IE=edge">@H_404_1@
<title></title>@H_404_1@
<link rel="stylesheet" href="">@H_404_1@
</head>@H_404_1@
<body>@H_404_1@
<div ng-app="myApp" ng-controller="myCtrl">@H_404_1@
<h3>{{myUrl}}</h3>@H_404_1@
</div>@H_404_1@
</body>@H_404_1@
<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>@H_404_1@
<script>@H_404_1@
var app = angular.module("myApp",[]);@H_404_1@
app.controller("myCtrl",function($scope,$location){@H_404_1@
$scope.myUrl = $location.absUrl();@H_404_1@
});@H_404_1@
</script>@H_404_1@
</html>@H_404_1@ 原文链接:https://www.f2er.com/angularjs/148186.html