How to parse the value multipleSelection? returned by multiple selection in vue table

table multi-selection demo given on the official website of element-ui (use Checkbox when selecting multiple rows of data. ), the data area defines multipleSelection: [], which stores the selected rows, but how to parse this data? For example, if you select two lines and print them, it is [object,Object], [object,Object]. How to parse this data to get the data of each selected row?

clipboard.png

Feb.28,2021

you know when console.log comes out,


front-end console, the format has also been seen, mainly can not be obtained, this.multipleSelection [0] .sid or this.multipleSelection [0] .getSid can not get the value of sid, and finally console.log ((this.multipleSelection [0]) ['sid']); it can be printed out, very strange.

Menu