87,910
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<script>
function A()
{
var text="小学班主任"+document.getElementById('txt1').value+",初中班主任"+document.getElementById('txt2').value+",都很好";
window.clipboardData.setData("text",text);
}
</script>
</head>
<body>
<input type="text" id="txt1"/>
<input type="text" id="txt2"/>
<input type="button" onclick="A();" value="拷贝到剪切板"/>
</body>
</html>
<html>
<head>
<script>
function A()
{
var text=document.getElementById('txt1').value+document.getElementById('txt2').value+",都很好";
window.clipboardData.setData("Text",text);
}
</script>
</head>
<body>
<input type="text" id="txt1" value="小学班主任"/>
<input type="text" id="txt2" value="初中班主任"/>
<input type="button" onclick="A();" value="拷贝到剪切板"/>
</body>
</html>
<html>
<head>
<script>
function A()
{
var text="小学班主任"+document.getElementById('txt1').value+",初中班主任"+document.getElementById('txt2').value+",都很好";
window.clipboardData.setData("aaa",text);
}
</script>
</head>
<body>
<input type="text" id="txt1"/>
<input type="text" id="txt2"/>
<input type="button" onclick="A();" value="拷贝到剪切板"/>
</body>
</html>