【发布时间】:2012-11-19 07:29:09
【问题描述】:
我有以下脚本:
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文件是什么意思。
标签: jquery ajax asp.net-mvc