私は gruntjs を見ていて、Grunt タスクを構成するために使用される JSON の例をいくつか見ました。
JSON の例を次に示します。
grunt.initConfig({
concat: {
foo: {
// concat task "foo" target options and files go here.
},
bar: {
// concat task "bar" target options and files go here.
},
},
uglify: {
bar: {
// uglify task "bar" target options and files go here.
},
},
});
ご覧のとおり、各バー プロパティの後に「余分な」カンマがあります。Chrome でこの表記法を試してみましたが、有効です。有効ですが、私はこの表記法を使用しませんが、なぜ人々はそれを使用するのでしょうか?