-2
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
}

我是否传递了错误的信息?

4

1 回答 1

0

我相信这是android的错误

https://code.google.com/p/android/issues/detail?id=11973

它是由将 null 传递给 JSON.parse 引起的。您需要明确检查该参数是否不为 android 上的 null,这会引发异常。

于 2013-09-16T16:47:22.947 回答