我正在尝试使用以下代码让 AJAX 到 WCF 工作的这个示例。在FF中查看时,什么都不显示,在IE中查看时,显示时间。
我正在使用 IIS 7,顺便说一句。
function getTime() {
TimeService.TimeService.GetTimeFormatted("dd-mm-yyyy [hh:mm:ss]", onMethodCompleted, onMethodFailed);
}
function onMethodCompleted(results) {
$get("currentTimeLabel").innerText = results;
}
...