案例:ionic案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
    <head>
3
    <meta charset="utf-8">
4
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
5
    <title>W3xue教程(w3xue.com)</title>
6
    <link href="/css/ionic1.0.1/ionic.min.css" rel="stylesheet">
7
    <script src="/js/ionic1.0.1/ionic.bundle.min.js"></script>
8
    <script type="text/javascript">
9
     angular.module('starter', ['ionic'])
10
11
      .run(function($ionicPlatform) {
12
        $ionicPlatform.ready(function() {
13
          // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
14
          // for form inputs)
15
          if(window.cordova && window.cordova.plugins.Keyboard) {
16
            cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
17
          }
18
          if(window.StatusBar) {
19
            StatusBar.styleDefault();
20
          }
21
        });
22
      })
23
24
      .controller( 'actionsheetCtl',['$scope',function($scope){
25
26
          $scope.devList = [
27
              { text: "HTML5", checked: true },
28
              { text: "CSS3", checked: false },
29
              { text: "JavaScript", checked: false }
30
            ];
31
32
            $scope.pushNotificationChange = function() {
33
              console.log('Push Notification Change', $scope.pushNotification.checked);
34
            };
35
36
            $scope.pushNotification = { checked: true };
37
            $scope.emailNotification = 'Subscribed';
38
39
      }])
40
    </script>
41
    <style type="text/css">
42
    body {
43
      cursor: url('finger.png'), auto;
44
    }
45
    </style>
46
    </head>
47
     <body ng-app="starter" ng-controller="actionsheetCtl" >
48