<p><button onclick="copyText()">复制内容</button></p>
<script>
function copyText() {
  var chatgptResponse = document.getElementById("chatgpt-response").value;
  chatgptResponse = chatgptResponse.replace("你当前使用的模型为gpt-3.5-turbo! ", "");
  navigator.clipboard.writeText(chatgptResponse);
  alert("已成功复制内容!");
}
</script>
我需要一个按钮复制下面代码里面的内容但是要过滤掉你当前使用的模型为gpt-35-turbo! textarea class=form-control id=chatgpt-response placeholder=长途访问请耐心等待回答 Ai生成它很快但是由于网络问题我们需要等待通常内容越长等待越久 如果长时间没反应请刷新页面重试 rows=26 resize=none style=width 1

原文地址: https://www.cveoy.top/t/topic/15G 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录