How could I manipulate this array in Javascript for this kind of error checking?

前端 未结 4 1808
时光取名叫无心
时光取名叫无心 2021-01-28 05:47

How can I make Javascript check an array and make sure that there\'s no error committed after the comma separating each element of the array .. For example a user may form an ar

4条回答
  •  感情败类
    2021-01-28 06:45

    Use a static code analyzer such as JSLint or JSHint.

    The latter is available as a JavaScript library in addition to the web-hosted flavor.

提交回复
热议问题