我有以下 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");
});