Home > front end >  Js, get the user clipboard contents and format conversion
Js, get the user clipboard contents and format conversion

Time:09-18

Which bosses can help, sprout new consult
I need to write a js code, the contents of the clipboard to get a computer, is to copy the contents of the excel spreadsheet, if you have any content, paste board will copy of the contents of the switch to

{
Data: [
{c1:682, c2: ' ', c3: '},
{c1:988.08, c2:2345, c3: '},
]
}
This format to add behavior unit, as the above copied the two rows of three columns of data, the first line of the first column is 682, the latter two columns are empty; Means how many rows in the data how many arrays,
How can such code laid hands on him, I am a rookie, is really can't figure out, for a big help, thank you