2021-01-15 10:25发布
可以的,步骤如下
1.实现点击按钮,复制文本框中的的内容
[removed]"text/javascript">
"text/javascript"
>
function
copyUrl2()
{
var
Url2=document.getElementById(
"biao1"
);
Url2.select();
// 选择对象
document.execCommand(
"Copy"
// 执行浏览器复制命令
alert(
"已复制好,可贴粘。"
}
[removed]
"20"
rows=
"10"
id=
>用户定义的代码区域
"button"
onClick=
"copyUrl2()"
value=
"点击复制代码"
/>
最多设置5个标签!
可以的,步骤如下
1.实现点击按钮,复制文本框中的的内容
[removed]
"text/javascript"
>
function
copyUrl2()
{
var
Url2=document.getElementById(
"biao1"
);
Url2.select();
// 选择对象
document.execCommand(
"Copy"
);
// 执行浏览器复制命令
alert(
"已复制好,可贴粘。"
);
}
[removed]
rows=
"10"
id=
"biao1"
>用户定义的代码区域
"button"
onClick=
"copyUrl2()"
value=
"点击复制代码"
/>
一周热门 更多>