如果本文对您有帮助,希望点个赞,建立下友谊关系。
摘要: <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script> <script src="//cdn.bootcss.com/angular-websocket/2.0.1/angul 阅读全文
posted @ 2017-09-07 14:13 一只喵喵 阅读(1228) 评论(0) 推荐(0) 编辑
摘要: angularjs 使用ui.router 去掉url中的#号。只要在index.html中添加<base href="/工程名/" /> 在路由中config下注入:locationProvider 然后添加 $locationProvider.html5Mode(true);就可以了 阅读全文
posted @ 2017-09-07 13:52 一只喵喵 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 然后再模块中注入‘'custom-template’; 打开该模块的方法: 关闭该模态框同时带参过来: 在其他控制器调用该确认框:(首先注入Common) 完成确认框之后会发现确认框在顶部,然后修改全局的css的'.model'样式,所有模态框都垂直居中了,如下: .modal { position 阅读全文
posted @ 2017-09-07 10:34 一只喵喵 阅读(2357) 评论(0) 推荐(0) 编辑
摘要: html部分: <div class="loading" ng-show="loading"> <div class="tishi"> <strong><i class="fa fa-spin fa-spinner fa-lg"></i></strong> </div></div> css部分: . 阅读全文
posted @ 2017-09-07 10:19 一只喵喵 阅读(279) 评论(0) 推荐(0) 编辑