摘要: 一、图标和splash大小不一样 icon图标的大小尽量为1024*1024,并且不能为圆角。 splash图片的大小尽量为2732*2732,ionic1的大小为2208*2208 阅读全文
posted @ 2018-07-10 09:18 朝阳升 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 判断是对象还是数组 var ids={ id:'1',num:'2' } if(Array.isArray(ids) == false) {console.log('不是数组,对象') } else if(Array.isArray(ids) == true) {console.log(‘数组’) 阅读全文
posted @ 2017-12-23 11:14 朝阳升 阅读(4361) 评论(0) 推荐(0) 编辑
摘要: 不能跳转的情况需要 在ionic项目根目录下,打开config.xml文件,在<access origin="*" />后添加<allow-navigation href="*" />即可 针对跳转到appstore的情况把跳转的URL改变下,参考如下链接地址 http://blog.csdn.ne 阅读全文
posted @ 2017-12-09 17:33 朝阳升 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 一、 安装插件 cordova plugin add ionic-plugin-keyboard 二、 软键盘显示监听 window.addEventListener('native.keyboardshow', function (e) { // todo 进行键盘可用时操作 //e.keyboa 阅读全文
posted @ 2017-09-01 14:27 朝阳升 阅读(1807) 评论(0) 推荐(0) 编辑
摘要: 一、引入$sce,转化一步即可 $scope.articlesdetail.info = $sce.trustAsHtml($scope.articlesdetail.info); 参考网址: https://segmentfault.com/a/1190000000639561 阅读全文
posted @ 2017-08-21 17:02 朝阳升 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 外层为false,逐级向内层判断 $scope.nums=700; $scope.result=($scope.nums>300)?($scope.nums>400)?($scope.nums>500)?($scope.nums>600)?'飞机':'高铁':'汽车':'客车':'无'; conso 阅读全文
posted @ 2017-08-04 11:40 朝阳升 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 一.ionic 自动签名的好处与坏处(ionic build android/ios) 好处在于:可以直接安装手机上进行安装测试,也可以上传Android或者iOS平台 不好的地方在于:你的电脑环境变了换电脑了,再打包出来的签名就会不一样了,再打包出来的app就无法覆盖之前的版本,会报签名不一样的问 阅读全文
posted @ 2017-08-01 19:15 朝阳升 阅读(791) 评论(0) 推荐(0) 编辑
摘要: text-overflow: -o-ellipsis-lastline;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical; 阅读全文
posted @ 2017-07-28 14:15 朝阳升 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 安装ionic 及 cordova npm install -g cordova ionic npm 淘宝镜像(GFW,导致很多插件下载失败)npm install -g cnpm --registry=https://registry.npm.taobao.org 更新命令npm update - 阅读全文
posted @ 2017-07-16 11:36 朝阳升 阅读(11746) 评论(0) 推荐(0) 编辑
摘要: 1. 参考地址 https://github.com/jpush/jpush-phonegap-plugin 2. http://www.cnblogs.com/Leo_wl/p/4319445.html 阅读全文
posted @ 2017-07-01 19:41 朝阳升 阅读(248) 评论(0) 推荐(0) 编辑