常用实例2023-5-10
小白
2023-05-10
【原创文章】
常用实例2023-5-10
1 复制到浏览器剪贴板
$(document).on('click','.fuzhi',function (){ let text = $(this).prev().text(); let transfer = document.createElement('input'); document.body.appendChild(transfer); transfer.value = text; // 这里表示想要复制的内容 transfer.focus(); transfer.select(); if (document.execCommand('copy')) { document.execCommand('copy'); } transfer.blur(); layer.msg('复制成功') document.body.removeChild(transfer); })
最新发布

- 视频截取封面 =php-ffmpeg/php-ffmpeg!
- 常用实例2023-5-10!
- 富文本 塞入mysql 报错: General error: 1366 Incorrect string value: ‘\xF0\x9F\x98\x84‘ for column ‘content‘!
- 百度地图拖拽获取地址实例!
- php使用smtp鉴权方式发送邮件 插件PHPMailer!
- 有道翻译接口对接!
- tp5循环插入百万数据模块不存在:error!
- git 切换仓库版本!
- PHP通过OpenSSL生成证书、密钥并且加密解密数据,以及公钥,私钥和数字签名的理解!
- 微信支付jsapi v3支付实例!
最热排行
