设计师成长的五个阶段
经常有设计师找我闲聊,在工作中有时候很迷茫,觉得遇到了瓶颈,涨薪很慢,项目很无趣,看不到成长的希望。
在h5页面进行监听返回跳转判断:
created(){
this.pushHistory();
window.addEventListener(“popstate”, function(e) {
//首页点击返回,直接关闭网页
WeixinJSBridge.call(‘closeWindow’);
uni.reLaunch({
url: xxxx
,
});
}, false);
},
methods:{
pushHistory() {
var state = {
title: “title”,
url: “#”
};
window.history.pushState(state, state.title, state.url);
},
}
作者 | 唐小引
出品 | CSDN(ID:CSDNnews)