“Use the array literal notation []” for var os_map = {}

后端 未结 4 1094
梦毁少年i
梦毁少年i 2021-01-02 03:56

I don\'t understand why I get the error message when I run JSLint with a JavaScript file.

I get the message var os_map = {}; Problem at line 28 character 36: Us

4条回答
  •  执念已碎
    2021-01-02 04:16

    Problem at line 16 character 32: Use the array literal notation []. if I run this code in JSLint. The options for the JSLint as the following.

    just do

    var arrayName= [];

提交回复
热议问题