Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我在该文本框中输入两个不同的日期,我正在使用两个文本框 fromdate 和 todate 与日历,我想从总叶数中显示另一个文本框中剩余的剩余天数。
在您的代码中使用以下代码Jquery
Jquery
var diff = ( new Date("1970-1-1 " + end_time) - new Date("1970-1-1 " + start_time) ) / 1000 / 60 / 60;
它将以小时为单位显示时差
拉小提琴