First, you have to make BlockListPropSub an array, var blockListPropSub = []. then use something like blockname: $('#block' + max).val() to ... ... <看更多>
This code assigned the array a to a new empty array. It works perfectly if you do not have any references to the original array. See the following example: let ... ... <看更多>