我无法摆脱这个错误The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or anenum type.ts(2362) 在数组内乘值时出现问题。我试图用下面的代码做一个计算余弦相似度的函数: cosineSim(Q: string[], B: string[]){
/
我无法在我的代码中解决这个问题,它说The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum typetooltips: { label: function (tooltipItem) {
varlabel:an