You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/08/01 04:08:22 UTC

[GitHub] [incubator-echarts] lyy7319 edited a comment on issue #10937: 混合开发,在ios app嵌入带有echarts的页面,退出进入几次后图标消失,页面报错

lyy7319 edited a comment on issue #10937: 混合开发,在ios app嵌入带有echarts的页面,退出进入几次后图标消失,页面报错 
URL: https://github.com/apache/incubator-echarts/issues/10937#issuecomment-516801067
 
 
   > 监听退出页面的事件,调用 `chart.dispose()`
   
   监听了 也dispose了 但是页面依然报错 ,使用如下方式监听,然后监听中销毁
   ```js
   pushHistory();
   window.addEventListener("popstate", function(e) {
       alert("我监听到了浏览器的返回按钮事件啦");//根据自己的需求实现自己的功能
   }, false);
   function pushHistory() {
       var state = {
           title: "title",
           url: "#"
       };
       window.history.pushState(state, "title", "#");
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org