0

JS を短くしたいのですが、コンパイル中にエラーが表示されます。

次のようなポイントからのエラー警告:

default = {
        Home:'',
        Max: 5,
}

また

items: {
     visible: 1,
     width: 200
      }

警告メッセージ:

JSC_TRAILING_COMMA: Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrectly. If you are targeting newer versions of JS, set the appropriate language_in option. at line 162 character 0
visible: 1,

JSC_TRAILING_COMMA: Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrectly. If you are targeting newer versions of JS, set the appropriate language_in option. at line 249 character 0
Home:'',

このエラーを解決する方法を教えてください。

4

2 に答える 2

3
default = {
    Home:'',
    Max: 5,

}

する必要があります

default = {
    Home:'',
    Max: 5

}

于 2013-11-14T20:51:45.757 に答える