javascript报错: TypeError: (0 , _api_music.default) is not a function

报错截图

image

错误原因

从其他文件引入变量时,未添加花括号

错误写法

image

解决方案

image

效果图

image

至此问题解决

posted @ 2022-03-28 10:23  胸怀丶若谷  阅读(284)  评论(0编辑  收藏  举报