js手写复制方法

    xiaoxiao2023-10-06  169

    const input = document.createElement("input"); input.setAttribute("value", this.address); input.setAttribute("type", "hide"); document.body.appendChild(input); input.select(); document.execCommand("copy"); document.body.removeChild(input);
    最新回复(0)