问题:Uncaught (in promise) TypeError: Assignment to constant variable.
WS._startWebSocket = function (projectId,viewType,userId) { // 连接选项 const options = { connectTimeout: 4000, // 超时时间 // 认证信息 clientId: ‘client_‘+projectId+"_"+viewType+"_"+userId, username: ‘gfkd‘, password: ‘123456‘, } client = mqtt.connect(‘ws://192.168.43.141:8083/mqtt‘, options)
Uncaught (in promise) TypeError: Assignment to constant variable.
原文:https://www.cnblogs.com/dayspring/p/13358709.html