上一页 1 ··· 6 7 8 9 10

2017年1月6日

摘要: //取当前页面的地址 例如http:127.0.0.1:80/aaa/index.html 返回http:127.0.0.1:80/aaa/function getUrlAddr(){ var str = window.location.href; var index = str .lastInde 阅读全文
posted @ 2017-01-06 14:40 温温婉婉 阅读(308) 评论(0) 推荐(0) 编辑
 
摘要: function getUrlParam(name){ var reg = new RegExp("(^|&)"+name+"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r != null) ret 阅读全文
posted @ 2017-01-06 14:37 温温婉婉 阅读(128) 评论(0) 推荐(0) 编辑

2017年1月3日

摘要: 在service中写服务 服务名叫feedService .service('feedService',function($ionicLoading,$q,$http){ return{ //获取反馈信息 feedFn:function(url,param){ var deferred = $q.d 阅读全文
posted @ 2017-01-03 09:54 温温婉婉 阅读(221) 评论(0) 推荐(0) 编辑

2016年12月12日

摘要: 使用指令ion-refresher可以为容器eg:ion-scroll 和 ion-content进行拉动刷新 <ion-scroll> <ion-refresher on-refresh="dofresh"></ion-refresher> <ion-list></ion-list> </ion- 阅读全文
posted @ 2016-12-12 10:47 温温婉婉 阅读(209) 评论(0) 推荐(0) 编辑
 
摘要: ion-scroll 声明一个可滚动的容器,需指定滚动区域和内容的大小 <ion-scroll>需要滚动的内容</ion-scroll> ion-scroll 有两个常用的可选属性: 1.direction:滚动方向。X|Y|XY 默认为Y 2.zooming : 是否支持缩放 阅读全文
posted @ 2016-12-12 10:17 温温婉婉 阅读(384) 评论(0) 推荐(0) 编辑
 
摘要: ion-header-bar 指令声明一个标题栏元素,标题栏总是位于屏幕顶部 它有两个同级的可选属性 align-title:设置标题文字的对齐方式。允许值:left|right|center no-tap-scroll: 当点击标题时,是否将内容区域自动滚动到最开始 true|false ps: 阅读全文
posted @ 2016-12-12 10:04 温温婉婉 阅读(385) 评论(0) 推荐(0) 编辑

2016年12月6日

摘要: <ion-tabs class="tabs-icon-top/bottom(决定这个tabs是置于上面还是底部) tabs-color-active-positive(图标与字体色) tabs-balanced(选项卡总的一横栏背景色)" > <ion-tab title="tab1(tab上显示t 阅读全文
posted @ 2016-12-06 16:28 温温婉婉 阅读(204) 评论(0) 推荐(0) 编辑

2016年12月1日

摘要: 点击file ->settings ->Directories 然后右侧有个Add Content Root 添加某个Root即可看见该root下的所有项目 阅读全文
posted @ 2016-12-01 15:24 温温婉婉 阅读(219) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10