美文网首页工作生活
Cannot read property 'call' of u

Cannot read property 'call' of u

作者: 书简_yu | 来源:发表于2019-07-01 14:11 被阅读0次

出现前提

  1. 使用了react代码分割
  2. 使用了cdn部署静态资源文件
  3. 服务端有缓存

原因

由于使用了代码分割,所以加载页面时会动态引入相应的额外代码,而这些额外代码由于存在缓存,所以出现问题


error

措施

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

resolve

相关文章

网友评论

    本文标题:Cannot read property 'call' of u

    本文链接:https://www.haomeiwen.com/subject/hpegcctx.html