ChatGPT 聊天机器人:无所不能,立即提问!
</div>
<button onclick='callCHATGPT()' autocomplete='off' class='btn btn-large' href='#' style='background-color: #333; color: #f4f4f4; border-radius: 10px' id='myButton'>发送消息</button> 点击发送消息后id为chat-gpt-input的内容自动清空内容:<script>
function callCHATGPT() { // 获取输入框内容 var input = document.getElementById('chat-gpt-input'); var message = input.value;
// 清空输入框内容 input.value = '';
// TODO: 调用CHAT GPT接口,处理消息并展示 }
原文地址: https://www.cveoy.top/t/topic/miyY 著作权归作者所有。请勿转载和采集!