我应该在这两者之间使用哪一种,哪一种优于另一种?
// 1st { ["test"]() { return 1; } } // 2nd { "test": function () { return 1; } }
javascript
javascript ×1