how to get clipboard data in angular JS

后端 未结 5 1999
温柔的废话
温柔的废话 2020-12-10 13:14

I was actually looking to get the content of clipboard using angular JS to simulate a copy paste thing.

5条回答
  •  粉色の甜心
    2020-12-10 13:32

    A completely different approach:

    I need to copy & paste text between windows, so I used this to save (copy) the data to local storage. Then, in the other window, I load it out of local storage, using the same key, and I can then 'paste' is as I like.

提交回复
热议问题