app.js添加:app
//總控制 var app = angular.module('myApp', ['ui.router','myApp.config','myApp.server']) .run(['$rootScope','locals','$http', function($rootScope,locals,$http){ //添加內容開始------------------------------------------------------------ $rootScope.$on('$stateChangeStart', function(){ $rootScope.tabs='ng-enter' }) //添加內容結束------------------------------------------------------------ } ]);
weui內容div添加classui
<div class="page-cont {{tabs}}"> <a href='地址'>內容連接</a> </div>