if(status == "meeting")
{
console.log("StartTime: " + form.mytime.value); //display 17:00
xmlReplace("CFStatus", "InMeeting"); // change the CFstatus == in Meeting
time = form.mytime.value + ":00"; //display 17:00:00 for format purpose
xmlReplace("StartTime", time); // create new variable Startime time
}
然后,我正确地将所有信息传递给下面的 if 语句,但由于某种原因,时间显示为 00:00:00
if($CFStatus.text() == "InMeeting")
{
$time = $xml.find("StartTime");
console.log("StartTimebefore:" + $time.text()); //00:00:00 How come it display 00:00:00????
localStorage.setItem("StartTime", $time.text());
document.getElementById("mytime").setAttribute("value", $time.text());
$('#mytime').trigger('datebox', {'method':'set', 'value':$time.text()});
console.log("StartTimeafter:" + $time.text()); //00:00:00
}
我是否传递了错误的信息?