毕业设计软硬件结合时,怎么把传感器采集的数据显示到前端页面(用vue jquery等写的页面)然后存储到数据库,再进行历史查询
用 Vue 的话,直接在 created 创建 Vue 对象的时候,Axios 模块异步访问后台请求的方式。
created() { this.$axios.get('/data').then((response) => { this.tableData = response.data; }); },