“PAGE” 方法

$t.copyToClipboard(str)

复制字符串到剪贴板。

参数

str (String): 要复制的字符串。

返回

(Object):返回一个包含 then 和 catch 方法的对象。

示例

$t.copyToClipboard('123')
  .then(res => { console.log('copy success! ' + res) }) // copy success! 123
  .catch(err => { console.log(err) })

results matching ""

    No results matching ""