2016-06-02 javascriptで array[]= は「でできない phpとか他の言語ではできるが、javascriptではできないので 素直にpush使うかconcatを使う arr.push(val) arr = arr.concat(val)