阅读背景:

当我加载重新加载页面时,如何删除数组中的所有对象?

来源:互联网 

I am using ionic2 (Angular2& typescript).Currently i am working on a matching algorithm where a match is found it will push the result inside an array which is also inside an object. However if i go back to the previous page and try to do another match.It will display results from the previous match.Hence i would want to be able to clear out all the results inside the array/object before proceeding to the matching part.So far i tried using ionwillEnter , and it just give me a blank page.I tried putting it inside the constructor and it does not work.Below are the codes I am using ionic2 (Angular2& typescript).Curren




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: