missing ; after for-loop initializer

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


        
相关标签:
3条回答
  • 2021-02-11 15:46

    This is javascript, but you're using int in your loop declaration? Try replacing those with var instead.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-11 16:02

    Change int i and int j to var i and var j.

    0 讨论(0)
提交回复
热议问题