我想縮短我的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:'',
說我如何解決這個錯誤。
也許,也許,擺脫警告中提到的尾隨逗號會使警告消失。 –