// 1、导入ViewChild、Content
import {Component, ViewChild} from '@angular/core';
import { IonicPage, NavController, NavParams,Content } from 'ionic-angular';
// 2、声明变量
@ViewChild(Content)Content:Content;
// 3、调整位置
this.Content.scrollTo(0,30,1000);
页面往上滚动30,耗时1秒
ionic_页面滚动
猜你喜欢
转载自blog.csdn.net/FlyingKuiKui/article/details/80598142
今日推荐
周排行