WTM
WTM copied to clipboard
Use WTM to write .netcore app fast !!!
应该是XMLHttpRequest的问题,使用fetch函数可以下载,可惜也不维护了 ` download: function (url, data, method = "POST") { var xhr = new XMLHttpRequest(); xhr.open(method, url, true); // 也可以使用POST方式,根据接口 xhr.responseType = "blob"; // 返回类型blob xhr.setRequestHeader('content-type', 'application/json'); xhr.setRequestHeader('Authorization', 'Bearer '...
例如 public class SoftwareVersion : BasePoco { public byte? Major { get; set; } public string sMajor => Major == null ? "FF" : Major.ToString(); public byte? Minor { get;...
foreach (var item in listItems) { if (selectVal != null && selectVal.Count > 0) { if (selectVal.Contains(item.Value?.ToString())) { item.Selected = true; } else { item.Selected = false; } } }...

