方括号([])在JavaScript正则表达式中的作用是什么?
据我的知识([])用于Knockout.js,它用于定义observableArray。请在下面找到示例和链接。
// This observable array initially contains three objects var anotherObservableArray = ko.observableArray([ { name: "Bungle", type: "Bear" }, { name: "George", type: "Hippo" }, { name: "Zippy", type: "Unknown" } ]);
http://knockoutjs.com/documentation/observableArrays.html