我试图通过java脚本获取开始时间和结束时间,但我不知道如何获得提交按钮它必须在提交按钮一侧运行多少时间来运行报告...
var begin_date = new Date();
//begin_time = begin.date.getTime();
begin_time = begin_date.getMilliseconds();
begin_date2 = begin_date;
var end_date = new Date();
//end_time = end_date.getTime();
end_time = end_date.getMilliseconds();
total_time = end_time - begin_time;
'Begin Time (ms): ' + begin_time;
'End time (ms): ' + end_time + "\n"+' Total time (ms): ' + total_time;
同样明智的是,我必须使用 javascript ...如何实现这一点?