<!DOCTYPE html><html><head> <title>Smart Display Control</title></head><body> <h2>Enter message to display on the screen:</h2> <form id="num1Form"> <input type="text" id="num1Input" name="num1" placeholder="Type your message here"> <button type="button" onclick="submitForm()">Display</button> </form> <script> function submitForm() { var num1 = document.getElementById('num1Input').value; fetch('http://192.168.1.1/display?num1=' + num1, { method: 'POST' }) .then(response => response.text()) .then(data => alert(data)) .catch(error => console.error('Error:', error)); } </script></body></html>正常在用网页运行没有问题,可以发出数据,但是放到单元格改html显示就不行了,显示的出来,点击没有发出数据。