案例:ionic案例     状态:可编辑再运行    进入横版
x
            <button class="button button-full button-positive" ng-click="createContact(newUser)">Create</button>
 
1
<html ng-app="ionicApp">
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
    
6
    <title>W3xue教程(w3xue.com)</title>
7
    <link href="https://cdn.bootcss.com/ionic/1.3.2/css/ionic.css" rel="stylesheet">
8
    <script src="https://cdn.bootcss.com/ionic/1.3.2/js/ionic.bundle.min.js"></script>
9
    <style>
10
    body {
11
        cursor: url('http://ionicframework.com/img/finger.png'), auto;
12
    }
13
    </style>
14
    <script>
15
    angular.module('ionicApp', ['ionic'])
16
17
    .controller('AppCtrl', function($scope, $ionicModal) {
18
      
19
      $scope.contacts = [
20
        { name: 'Gordon Freeman' },
21
        { name: 'Barney Calhoun' },
22
        { name: 'Lamarr the Headcrab' },
23
      ];
24

 运行结果 
 北美留学生论坛