Server IP : 103.6.199.200 / Your IP : 3.148.108.192 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/tradepan/gotonepay.com/wwwroot/ |
Upload File : |
<%@ page language="C#" autoeventwireup="true" inherits="Default2, App_Web_khi2w1wm" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <SCRIPT src="js/Clip.js"></SCRIPT> <script src="js/copy2clipboard.js"></script> <script> window.Clipboard = (function(window, document, navigator) { var textArea, copy; function isOS() { return navigator.userAgent.match(/ipad|iphone/i); } function createTextArea(text) { textArea = document.createElement('textArea'); textArea.value = text; document.body.appendChild(textArea); } function selectText() { var range, selection; if (isOS()) { range = document.createRange(); range.selectNodeContents(textArea); selection = window.getSelection(); selection.removeAllRanges(); selection.addRange(range); textArea.setSelectionRange(0, 999999); } else { textArea.select(); } } function copyToClipboard() { document.execCommand('copy'); document.body.removeChild(textArea); } copy = function(text) { createTextArea(text); selectText(); copyToClipboard(); }; return { copy: copy }; })(window, document, navigator); // How to use Clipboard.copy('text to be copied'); </script> </head> <body> <form id="form1" runat="server"> <div> <div class="button clipboardBtn" data-clipboard-action="copy" data-clipboard-text="abc123" on-click="console.log(1)">复制并去微信粘贴</div> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" on-click="Clipboard.copy('text to beed');" /> <button class="btn" data-clipboard-text="Just because you can doesn't mean you should — clipboard.js"> Copy to clipboard </button> <div id="textbox">Mary had a livvttle lamb</div> <asp:TextBox ID="textbox2" runat="server" Text="xxxxx"></asp:TextBox> <button onclick="select_all_and_copy(document.getElementById('textbox'))">Copy to Clipboard</button> </div> </form> </body> </html>