我想通过.each
函数获取属性?
public class UserDto
{
public List<UserNode> UserList { get; set; }
}
public class UserNode
{
public UserNode()
{
UserViews = new List<string>();
}
public Guid Id { get; set; }
public IList<string> UserViews { get; set; }
}
我如何通过 .each 函数提取值?我想显示 id 和 userviews?
success: function (userDetails) {
$.each(userDetails, function() {
$.each(this, function (key, value) {
alert(value);
});
});
},
有什么办法得到这个吗?