代码编辑器:
x
1
2
<meta charset="utf-8">
3
<link href="/static/next/css/tryit.css?v=2017082407" rel="stylesheet"/>
4
<div ng-app="myApp" ng-controller="myCtrl">
5
站点: {{ msg | reverse }}
6
</div>
7
<footer>简单教程,简单编程<br/>Copyright © 简单教程 www.twle.cn</footer>
8
<script src="http://cdn.bootcss.com/angular.js/1.4.6/angular.min.js"></script>
9
<script>
10
var app = angular.module('myApp', []);
11
app.controller('myCtrl', function($scope)
12
{
13
$scope.msg = "简单教程";
14
});
15
app.filter('reverse', function() {
16
return function(text) {
17
return text.split("").reverse().join("");
18
}