09 2022 档案

摘要:1.秒转换成多少天多少小时多少分多少秒 `` 点击查看代码 // 秒转换成时间 function formatSeconds(value) { var theTime = parseInt(value); // 需要转换的时间秒 var theTime1 = 0; // 分 var theTime2 阅读全文
posted @ 2022-09-15 13:48 SKa-M 阅读(89) 评论(0) 推荐(0) 编辑
摘要:// 获取天气状态 getWeather: function () { var _this = this; $.ajax("https://devapi.qweather.com/v7/weather/now?location=105.148371,25.370256&key=a580a69c104 阅读全文
posted @ 2022-09-15 13:17 SKa-M 阅读(511) 评论(0) 推荐(0) 编辑
摘要:1.对Date的扩展,将 Date 转化为指定格式的String 1.(new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423 2.(new Date()).Format("yyyy-M-d h:m:s.S") 阅读全文
posted @ 2022-09-07 10:13 SKa-M 阅读(1251) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示