出现前提
- 使用了react代码分割
- 使用了cdn部署静态资源文件
- 服务端有缓存
原因
由于使用了代码分割,所以加载页面时会动态引入相应的额外代码,而这些额外代码由于存在缓存,所以出现问题

措施
在runtime~main.js中加上时间戳

由于使用了代码分割,所以加载页面时会动态引入相应的额外代码,而这些额外代码由于存在缓存,所以出现问题
在runtime~main.js中加上时间戳
本文标题:Cannot read property 'call' of u
本文链接:https://www.haomeiwen.com/subject/hpegcctx.html
网友评论