Home > front end >  Js code to obtain the clipboard contents with the transfer content format
Js code to obtain the clipboard contents with the transfer content format

Time:09-18

Need to perform successfully in Google browser developer tools code, select a few rows and columns in Excel spreadsheet Ctrl + C to copy the data content, content has the Numbers and words, and then use the code direct access to data that has just been copied to the clipboard contents, in general, if paste out will be copy a few lines paste displayed is a few lines, but there is no need to paste, with the code, and will be converted to the content of these

{

Data: [

{c1:682, c2: ' ', c3: '},

{c1:988.08, c2:2345, c3: '},

]

}

Such a json format, the data is to copy the contents of this time, and the data of the said copy the two lines, c1, c2 and c3 said copy the three columns, and the format to refer to the contents of a single judge, is digital, not Numbers of quotes, and a big help, urgent urgent
  • Related