摘要:
[HttpPost] public ActionResult Login() { var form = JsonConvert.DeserializeObject(new StreamReader(Request.InputStream).ReadToEnd()); string username = form.username; string password = for... 阅读全文
摘要:
Workbook workbook = new Workbook(); workbook.LoadFromFile(@"卷内目录.xls"); Worksheet sheet = workbook.Worksheets[0]; sheet.PageSetup.HeaderMarginInch = 0;... 阅读全文
摘要:
我用的是List 其他类型可以参考修改类型即可实现效果 /// /// c# 将list的内容转换成固定个数的分组字符串 /// /// 原始数组 /// 分组数量 /// 返回一个新的双层数组 public List> listsplic(List list,int num... 阅读全文
摘要:
/// /// 替换文件名中的非法字符为同样式的其他字符 /// /// /// public string ReplaceFileName(string name) { name = name.Replace("/", "/"); ... 阅读全文
摘要:
管理GeckoFx PM> Install-Package Geckofx45 -Version 45.0.34 GeckoWebBrowser geckoWebBrowser; public Form1() { InitializeComponent(); Xpcom.Initialize("Firefox"); geckoWebBrowser = new GeckoWebBrowser { D 阅读全文
摘要:
var script = geckoWebBrowser.Document.CreateElement("script"); script.TextContent = "vm.Data.单号='123a789456a123456';"; geckoWebBrowser.Document.GetElementsByTagNam... 阅读全文