一直报错,检查很多遍,没检查出来什么问题。 后面终于发现,原来我没在 typeof 类型那里,加上 "" 解决方法: 代码改为 typeof enhancer !== "undefined" 以此文章,提醒自己 ...