Cannot read properties of undefined (reading ‘push‘) 解决方法

目录

报错消息:

1. 前提

 2.解决方案


报错消息:

1. 前提

在setTimeout 里面直接写跳转路由,如下图,然后就报此错。

 2.解决方案

在外层先定义this,然后再使用

猜你喜欢

转载自blog.csdn.net/CMDN123456/article/details/130199781