比如说我们要在当前页面发请求然后由当前页面接收
这边是通过:
public ApparticlelibraryPage$ : EventEmitter<'ApparticlelibraryPage'>
this.ApparticlelibraryPage$ = new EventEmitter();
let dadevalue=data;
this.ApparticlelibraryPage$.emit(dadevalue);
这是在pushserver里面
然后在页面的处理
pushService.AppaddnewbannerPage$.subscribe(data=>this.updata(data));这个我写在constructor里面,然后updata(data){this.imgData=data;}就是对数据赋值了 但是这样做有很多问题 (我不知道我的写法有没有错) 当我第二次进入这个页面就会发送两次请求进入三次就发三次 类推 还有就是数据我不知道什么时候能到 不能使用then 好像 还请各位大神看看