使用来自 jQuery 的函数 "each" 创建多个数组

Creating multiple array using function "each" from jQuery

我正在尝试做这个:

myArray = [
  [value1,value2,value3],
  [value1,value2,value3],
  [value1,value2,value3]
];

使用 jQuery 中的函数 each(),但即使在网上看到示例,我仍然卡住了:/帮助。

$('myRepeatingTag').each(function(){

  //I want to increment myArray[] here with many new values/subvalues

});

这里的答案,如楼上朋友所说,就是用

myArray.push([new_value1, value2, value3])

在主数组中存储新数组。