Files
quote_price/src/main/webapp/views/copyResult.jsp
T
2025-02-20 15:14:38 +08:00

27 lines
627 B
Plaintext

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<style>
.copyResult {
color: red;
font-size: 16px;
font-weight: bold;
margin-left:50px;
}
</style>
<script>
function copyResult(){
var e=document.getElementById("span_result");//对象是content
if (e.value != "") {
e.select();//选择对象
document.execCommand("Copy");//执行浏览器复制命令
}
}
function copyBz(){
var e=document.getElementById("bz_result");//对象是content
if (e.value != "") {
e.select();//选择对象
document.execCommand("Copy");//执行浏览器复制命令
}
}
</script>