我使用Arduino向Raspberry pi发送传感器数据(例如温度、湿度、烟雾水平等)。Raspberry pi将它们存储并提交到MySQL数据库。我现在使用Flask在web服务器上显示数据集。 if result > 0: return render_template("temp.html",
我想单击href并执行javascript函数,将一些值发送到python,并用这些数据呈现新的模板,这是我的代码。<!DOCTYPE html> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js>
s