-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (47 loc) · 1.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.commonHide{display:none;}
.test1{padding: 10px 20px;outline:none;border:1px solid; border-radius:5px;cursor:pointer;}
</style>
<script data-main="main.js" src="js/lib/requirejs/require.js"></script>
<!-- <script src="js/lib/bower-angularjs/angular.js"></script>
<script src="js/lib/jquery/src/jquery.js"></script>
<script src="js/lib/bower-angularjs/angular-route.js"></script> -->
<!-- <script src="js/controller/controller1.js"></script> -->
<!-- <script src="js/route/route.js"></script> -->
<script>
function test1() {
alert('test1');
}
</script>
</head>
<body ng-app="myApp">
<div id="app-root" ng-view>
<button class="test1" onclick="test1()"> test1 </button>
</div>
<script type="text/javascript">
/*
angular.module("myApp", ["ngRoute"])
.controller("myCtrl", function ($scope, $route) {
$scope.firstName = "John";
$scope.lastName = "Doe"
})
.config(function ($routeProvider, $locationProvider) {
$routeProvider
.when('/a', {
templateUrl: 'views/a.html',
controller: 'myCtrl'
})
.otherwise({
redirectTo: '/a'
});
});
*/
</script>
</body>
</html>