zoukankan      html  css  js  c++  java
  • ionic之简单实例

    1、实例背景

         ionic是基于AngularJS,是一个框架。根据AngularJS双向绑定变量,动态获取值。


    2、实现源码

    <!DOCTYPE html>
    <html>
    	<head>
    		<meta charset="UTF-8">
    		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    		<title>ionic之简单实例</title>
    		<link rel="stylesheet" href="../css/ionic.css" />
    		<script type="text/javascript" src="../js/ionic.bundle.js" ></script>
    		<script>
    			var app = angular.module("tagApp",["ionic"]);
    			app.controller("tagController",function($scope){
    				$scope.username = "李海";
    			});
    		</script>
    	</head>
    	<body ng-app="tagApp" ng-controller="tagController">
    		<ion-header-bar class="bar-positive">
    			<label class="title">欢迎使用ionic</label>
    		</ion-header-bar>
    		<ion-content>
    			<span>{{username}}</span>
    		</ion-content>
    	</body>
    </html>
    

    3、实现结果


  • 相关阅读:
    ajax_注册
    mysql 二
    mysql基础
    django数据库批量创建
    私有属性
    mysql操作
    @property @classmethod @staticmethod
    python中的__new__方法
    员工信息表-装逼版
    三级菜单
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13314046.html
Copyright © 2011-2022 走看看