jquery .get导致TypeError

时间:2013-08-01 13:31:08

标签: jquery get typeerror

我有以下jQuery .get语句:

$.get("handleAppt.php", { recordID: "<?php echo $recordID; ?>", firstName: firstName, lastName: lastName, phoneNumber: phoneNumber, email: email, apptMonth: apptMonth, apptDay: apptDay, apptYear: apptYear, apptHour: apptHour, apptMinute: apptMinute, apptAMPM: apptAMPM, selectedCarYear: "<?php echo $selectedCarYear; ?>", selectedCarMake: "<?php echo $selectedCarMake; ?>", selectedCarModel: "<?php echo $selectedCarModel; ?>", selectedCarValue: "<?php echo $selectedCarValue; ?>", downPayment: "<?php echo $downPayment; ?>" }, function(data) {
    alert("done");
});

当代码执行时,我在firebug中收到以下消息:

  

TypeError:没有足够的EventTarget.addEventListener参数。   http://code.jquery.com/jquery-1.9.1.js?_=1375363591188

对于我的生活,我无法弄清楚.get语句有什么问题。

编辑:

.get的源视图:

$.get("handleAppt.php", { recordID: "24337", firstName: firstName, lastName: lastName, phoneNumber: phoneNumber, email: email, apptMonth: apptMonth, apptDay: apptDay, apptYear: apptYear, apptHour: apptHour, apptMinute: apptMinute, apptAMPM: apptAMPM, selectedCarYear: "2013", selectedCarMake: "Toyota", selectedCarModel: "RAV4", selectedCarValue: "22452", downPayment: "0" }, function(data) {
     alert("done");
});

0 个答案:

没有答案