【发布时间】:2020-12-29 11:14:22
【问题描述】:
我正在使用这个函数从我的数据库中获取数据,使用 asp.net 和 c# 中的 Web 服务 这是我的功能
function test(MsId) {
var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
$(document).ready(function () {
$.ajax({
url: "/web_service/Services.asmx/GetData",
type: "GET",
dataType: "json",
data: {
'MsId': MsId
},
contentType: "application/Json; Charset= Utf-8",
success: function (data) {
var list = "";
$.each(data.d[0][0], function (index, item) {
list += "<div class='active'><div class='direct-chat-infos'><span class='direct-chat-name float-left'>" + item.CompleteName + "</span> " + item.Status_Status + "</div><span class='direct-chat-timestamp float-left text-sm'>" + new Date(parseInt(item.Status_Date.substr(6))) + "</span><br /></div>";
});
$("#List").html(list);
},
error: function (response) {
alert(response);
}
});
});
}
但她给了我这个错误,我正在使用加密 id(图片) enter image description here
【问题讨论】:
-
我们无法知道您的服务器为何返回该错误。
-
@Taplar 我想我正在使用 id 解密?
-
完全不知道。我们不知道该端点是如何实现的。