Requirements: an array of multiple background check, and then select the foreground can display only six (and prompt messages to the customer)
Question: Now to the background check data, after multiple-choice format is the array contains objects, the front page is a table that contains an array of objects, not directly push added to it, can only be assigned; how to push? ?
Ideas:
Method One: arr1.push (... arr2); ... arr2 array expanded form
Method two: arr1 = arr1.concat (arr2)
Method three: see example bottom
Here is the actual program code for: (check out if the customer is six or more data, you can only display the page 6)
==> Code:
===============================================================================================
Method three: JSON deep copy method