我试图比较lua上的值,如上面的代码:
if (self.areaTextoVisible:measureText(linhas[linhaIndice] .. " " .. w) < (self.areaTextoVisibleWidth - (offSetScroll + self.margemLateral + (self.margens * 2)))) then
linhas[linhaIndice] = linhas[linhaIndice] .. " " .. w;
但是我得到了“尝试比较函数和数字的__lt”。我该如何解决这个问题?