var serverTime1 = $('#commands_outgoings > table > tbody > tr:nth-child(2) > td:nth-child(3) > span').html().split(':');
var serverTime = $('#serverTime').html().split(':');
console.log(serverTime1)
console.log(serverTime)
0: "14"
1: "05"
2: "11"
console.log(serverTime1)
0: "21"
1: "01"
2: "10"如何一次更改3个数组(当我刷新页面时)0 1 2 (0小时)(1分钟)(2秒)
或
var actualtime = $("#serverTime")[0].innerText;
var endtime = $("#commands_outgoings > table > tbody > tr:nth-child(2) > td:nth-child(3) > span")[0].innerText;格式化
15:06:45和19:59:35如何创建刷新时间?(土拨猴)
发布于 2021-05-31 03:45:25
var time1 = $("#content_value > table:nth-child(2) > tbody > tr > td:nth-child(2) > table:nth-child(11) > tbody > tr:nth-child(10) > td:nth-child(2) > span")[0].innerText;
var timeParts1 = time1.split(":");
var cas = (((+timeParts1[0] * (60000 * 60)) + (+timeParts1[1] * 60000) + (+timeParts1[2] * 1000)));已解决
https://stackoverflow.com/questions/67760578
复制相似问题