- 博客(1)
- 收藏
- 关注
原创 Vue导入QWebChannel文件出现[TypeError: c.a is not a constructor]
具体情况 目标程序是一个QWebEngineView + Vue,基于QWebChannel通信,以Qt5为载体的本地 但是在Vue中导入qwebchannel文件之后 import QWebChannel from 'qwebchannel.js'; npm run build 构建加载到QWebEngineView里头之后,使用new QWebChannel会出现TypeError: c.a is not a constructor的报错 解决方案 我本不相信官方给的qwebchannel.js文件
2020-06-16 00:09:05 2000 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人