JavaScript copy to clipboard not working

前端 未结 5 1104
感动是毒
感动是毒 2021-02-12 22:11

I have a function in my script that gives me an error. The function purpose is to copy text from static panel(not textbox or input) with onClick event.

Uncaught

5条回答
  •  北海茫月
    2021-02-12 22:27

    select() method is used to select the contents of text fields. it won't work on h1 element.

提交回复
热议问题