
JS-剪切板
BSL.CopyText('content')
| 參數 | 必填 | 說明 |
|---|---|---|
| content | 是 | 指定要復制的內容 |
<a href="#" onclick="BSL.CopyText('復制內容復制內容復制內容')">復制內容</a>BSL.CopyUrl()
<a href="#" onclick="BSL.CopyUrl()">復制當前網址</a>
BSL.getClipboard('callbackMethod')
| 參數 | 必填 | 說明 |
|---|---|---|
| callbackMethod | 是 | 自定義回調函數。 |
<script>
function getClipboard(result){
alert(result);
}
</script>
<a href="#" onclick="BSL.getClipboard('getClipboard')">當前剪切板內容</a>2020-03-04 18:07:39
熱門App插件
猜你喜歡
咨詢 . 試用
咨詢 . 試用