我想从asp.net web服务返回一个html表,但无法弄清楚如何获取返回为实际html的字符串。这里是我的jQuery的电话...
$.ajax({
type: "POST",
url: "UserService.asmx/PersonTable",
data: "{}",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function(obj) {
alert(obj);
$('#tblPeople').text(obj.d);
},
error: function() {
alert("error");
}
})
返回字符串中我想要的格式,但只是写出的字符串是一个HTML表的字符串表示的屏幕。我如何获得实际的Html表格呈现?