var beginTime = +new Date(); this.$store.commit('EDIT_PROJECT', resp); this.$router.push(`/service/project/${id}`); var endTime = +new Date(); console ...
var beginTime = +new Date();
this.$store.commit('EDIT_PROJECT', resp);
this.$router.push(`/service/project/${id}`);
var endTime = +new Date();
console.log("用時共計"+(endTime-beginTime)+"ms");
還有別的方法的話歡迎賜教