missing ; after for-loop initializer

后端 未结 3 1655
名媛妹妹
名媛妹妹 2021-02-11 15:18
var nodeWordsString = document.getElementById(\"nodeWordsTextArea\").value.trim();
    var nodeWordsStringArray=nodeWordsString.split(\" \");
    var strLength = nodeWor         


        
3条回答
  •  轮回少年
    2021-02-11 15:57

    In my case, the error was caused by using let in the loop. Old browsers like Firefox 38 doesn't support let.

    Replacing let by var solved the issue.

提交回复
热议问题