您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

ionic之简单实例

2024/4/22 14:13:45发布27次查看
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、实现结果
以上就是ionic之简单实例的内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product