Enjoy the good life everyday!
关闭
欢迎来PyGo个人空间 ^_^
标签: JavaScript | PyGo² ); ta.select(); ta.setSelectionRange(0, code.length); ta.readOnly = false; var result = document.execCommand('copy'); if (result) $(this).text('复制成功'); else $(this).text('复制失败'); ta.blur(); // For iOS $(this).blur(); })).on('mouseleave', function(e) { var $b = $(this).find('.copy-btn'); setTimeout(function() { $b.text('复制'); }, 300); }).append(e); })