To add hours to a JavaScript Date object, use the setHours() method. Under that, get the current hours and 2 hours to it.
確定! 回上一頁