的Index.aspx只显示前10个记录
$(document).ready(function() {
$.ajax({
type: "POST",
url: "Index.aspx/GetData",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: true,
cache: false,
success: function (msg) {
$.each(msg.d, function (index, value) {
$('#myDiv').html(value.Email);
});
}
})
return false;
});
Index.aspx.cs
[WebMethod]
public static IEnumerable<TemperatureEntity> GetData()
{
//return array data
从您的web方法返回10个元素? – mybirthname
问题是什么?你已经问过488上一个问题可怜的问题 – Satpal
另一件事,指出你有近4k点,你仍然不知道如何提出正确的问题。 – mybirthname