我有以下腳本:路徑中的非法字符?
function PostChartValues(meter_id, range_type_id, start_date, end_date) {
$.ajax({
url: '@Url.Action("GetMeterReadingsTimeSeries", "Widget")',
type: 'POST',
data: { MeterType: meter_id, DateRangeType: range_type_id, StartDate: start_date, EndDate: end_date },
beforeSend: function() {
$("#chart_loading_div").show();
},
complete: function() {
$("#chart_loading_div").fadeOut();
},
success: function (result) {
$("#chart").html(result);
},
error: function (result) {
alert("Seçilen kritere uygun veri bulunamadı!");
}
}); //end ajax
} //end PostChartValues
代碼工作。但是當我收到上面代碼的外部.js文件時,我收到了我在標題中寫入的錯誤。
爲什麼我得到這個?
你能澄清一下嗎?你是什麼意思的外部js文件。 –