js增加8小时

var currTimestamp = new Date.getTime();
var targetTimestamp = currTimestamp + 8 * 3600 * 1000;              
var targetDateTime = new Date(targetTimestamp);
原文地址:https://www.cnblogs.com/sangzs/p/14913084.html