获取指定url参数值 /* 获取某url中的某参数值 调用:GetUrlQueryString("[url地址]","[参数名]"); */ function GetUrlQueryString(url,name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = url.substring(url.indexOf("
using ServiceStack.Web; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Web; namespace restService.Interface.Helper { public static class Entity
原文:将byte[]转为WriteableBitmap对象 //convert the bytes to WriteableBitmap privateWriteableBitmap BytesToImage(byte[] src, int lw, int lh) { WriteableBitmap wbbitmap = newWriteableBitmap(lw, lh); Stream s = wbbitmap.PixelBuffer.AsStream(); s.Seek(0, SeekOr
DataTable转List,DataTable转为Model对象帮助类 public class ModelConvertHelper<T> where T : new() { public static List<T> ConvertToModel(DataTable dt) { // 定义集合 List<T> ts = new List<T>(); // 获得此模型的类型 Type type = typeof(T); string tempName =