ionic2随笔——初学

2017-04-24  本文已影响0人  XL_YE

1.在src/app/app.module.ts文件里可改模式,ios或者安卓(md),如下图

2.xxx.module.ts的基本模板

import { NgModule } from '@angular/core';

import { IonicModule } from 'ionic-angular';

import { MyApp } from '../../app/app.component';

@NgModule({

imports: [

IonicModule.forRoot(MyApp)

],

declarations: [],

entryComponents: [],

providers: []

})

export class HomeModule {}

3.<textarea></textarea>自动增高并隐藏滚动条

<textarea row="1" oninput="this.style.height='auto';this.style.height=this.scrollHeight+'px'" onpropertychange="this.style.posHeight=this.scrollHeight"></textarea>

4.谷歌开发平台控制台添加iOS key,安全码bundle ID在哪里?

5.注意this的指向

6.<ion-segment></ion-segment>的初始化

上一篇 下一篇

猜你喜欢

热点阅读