copy whole html table to clipboard javascript

前端 未结 8 1632
暗喜
暗喜 2021-01-05 06:58

I have write javascript to select the table but I want to now automaticaly copy it after the click of the button.Please help me.My javascript is like this.

f         


        
8条回答
  •  隐瞒了意图╮
    2021-01-05 07:30

    You can use this custom script, if you need to copy to clipboard all data from table; html:

    
    
    
    user_id Name
    123 Proba

    After you click on the button, your table data should be copied.

提交回复
热议问题