随笔分类 -  ionic2

摘要:html <div id="tablediv" (scroll)="this.scroll($event)" style="width:100%;height:calc(100% - 30px);overflow: auto;"> <table cellspacing="0"> <tr class= 阅读全文
posted @ 2020-08-25 15:28 Tiramisu.man 阅读(1090) 评论(0) 推荐(0)
摘要:test.ts import {trigger, style, animate, transition} from '@angular/animations'; @Component({ selector: 'booking', templateUrl: './booking.html', styl 阅读全文
posted @ 2019-07-18 18:46 Tiramisu.man 阅读(258) 评论(0) 推荐(0)
摘要:存储:localStorage.setItem(key,value); 如果key存在时,更新value 获取:localStorage.getItem(key); 如果key不存在返回null 删除:localStorage.removeItem(key); 一旦删除,key对应的数据将会全部删除 阅读全文
posted @ 2018-11-20 15:46 Tiramisu.man 阅读(1049) 评论(0) 推荐(0)
摘要:1、安装node.js 下载地址:https://nodejs.org/en/ 检测是否安装成功,命令行输入 node -v npm -v 2、安装ionic 检测是否安装成功,命令行输入 ionic -version 3、安装cordova 检测是否安装成功,命令行输入 cordova -vers 阅读全文
posted @ 2018-01-13 12:55 Tiramisu.man 阅读(122) 评论(0) 推荐(0)
摘要:1.创建应用: 使用Ionic2创建应用非常简单,只需在V1的命令后跟上--v2即可,如下: 1 ionic start ionic2-welcome --v2 启动流浏览器,查看当前效果 1 ionic serve 2.创建Component 使用命令行创建页面或者自行在创建文件 1 ionic 阅读全文
posted @ 2017-12-20 23:45 Tiramisu.man 阅读(869) 评论(0) 推荐(1)
摘要:tabs.html 由于我之前放在我自己新增的tabs.scss里面一直报错,但是我把样式放在app.scss就好了,具体原因我还不知道,找到原因再来更新 app.scss 阅读全文
posted @ 2017-12-18 23:35 Tiramisu.man 阅读(671) 评论(0) 推荐(0)