摘要: 1、【问题】导入数据后时间列显示的都是0000 【解决】导入数据时时间列选择的数据类型是时间类型导致的,正确方法是: 1)导入数据时,此列数据类型选varchar 2)导入数据后,再使用SQL语句修改时间戳这一列为日期 2、时间戳处理 (1)获取当前时间戳 current_timestamp, cu 阅读全文
posted @ 2024-02-25 03:20 NewJersey 阅读(41) 评论(0) 推荐(0)
摘要: 一、将Sting转为Json 在开发中,经常是前端发送一串数据过来之后,是通过一个参数带着一串值过来,这一串值是String 格式的,但是里面的内容其实是json格式类型的,所以拿到值之后就要将该值转化成json格式,然后获取里面指定的key就可以拿到该值了。 JSONObject jsonObje 阅读全文
posted @ 2024-02-25 03:04 NewJersey 阅读(2305) 评论(0) 推荐(0)
摘要: <input type="text" name="batch" placeholder="设备号" class="form-control" id="batch" list="batch_list" autocomplete="off"> <!-- 选择内容 --> <datalist id="ba 阅读全文
posted @ 2024-02-25 02:59 NewJersey 阅读(191) 评论(0) 推荐(0)
摘要: let d=new Date().toLocaleTimeString().substring(0,5), currentTime=d.split(":"), currentTimes=currentTime[0]+currentTime[1]; console.log(d); if(current 阅读全文
posted @ 2024-02-25 02:56 NewJersey 阅读(147) 评论(0) 推荐(0)
摘要: 一.img中的src的字符串动态拼接 方法一(你可以这样写) <ul> <li v-for='item in weatherArr'> ![]('http://openweathermap.org/img/w/'+item.weather[0].icon+'.png') </li> </ul> 方法 阅读全文
posted @ 2024-02-25 02:53 NewJersey 阅读(551) 评论(0) 推荐(0)