摘要: 阅读全文
posted @ 2021-12-06 15:26 菜鸟-程序猿 阅读(42) 评论(0) 推荐(0)
摘要: /// <summary> /// POST请求与获取结果 /// </summary> public static string HttpPost(string Url, string postDataStr) { HttpWebRequest request = (HttpWebRequest) 阅读全文
posted @ 2021-03-14 11:58 菜鸟-程序猿 阅读(268) 评论(0) 推荐(0)
摘要: /// <summary> /// SQL注入字符清理 /// </summary> /// <param name="value">需要清理的字符串</param> /// <returns></returns> public static string SqlTextClear(string v 阅读全文
posted @ 2021-01-26 17:08 菜鸟-程序猿 阅读(93) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Text; namespace Lbs3.Core.Domain{ /// <summary> /// 查询参数通用类 /// </summary> public class Que 阅读全文
posted @ 2020-12-15 19:59 菜鸟-程序猿 阅读(76) 评论(0) 推荐(0)
摘要: public static string GetStringByHttpPostRaw(string url, string data) { string value = ""; log.Info(url); log.Info(data); //RentInterfaceReturnModel mo 阅读全文
posted @ 2020-09-28 11:17 菜鸟-程序猿 阅读(3000) 评论(0) 推荐(0)
摘要: function parseToDate(value) { if (value == null || value == '') { return undefined; } var dt; if (value instanceof Date) { dt = value; } else { if (!i 阅读全文
posted @ 2020-06-12 16:02 菜鸟-程序猿 阅读(259) 评论(0) 推荐(0)
摘要: function download(id) { let url = 'http://localhost:12879/Resource/ResourceDnld?id=' + id; let xhr=new XMLHttpRequest(); xhr.open('post',url,true); xh 阅读全文
posted @ 2020-06-10 14:14 菜鸟-程序猿 阅读(1158) 评论(0) 推荐(0)
摘要: 首先说Thread、ThreadPool前台线程:主程序必须等待线程执行完毕后才可退出程序。Thread默认为前台线程,也可以设置为后台线程后台线程:主程序执行完毕后就退出,不管线程是否执行完毕。ThreadPool默认为后台线程线程消耗:开启一个新线程,线程不做任何操作,都要消耗1M左右的内存Th 阅读全文
posted @ 2020-05-09 11:47 菜鸟-程序猿 阅读(201) 评论(0) 推荐(0)
摘要: //引入Twitter window.twttr = (function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return 阅读全文
posted @ 2020-03-05 09:50 菜鸟-程序猿 阅读(2632) 评论(0) 推荐(0)
摘要: function workDownLoad(workID) { var fileName = ""; var status = false; $.ajax({ type: "Post", url: "/Common/GetWorkOrPlayName", datatype: "json", data 阅读全文
posted @ 2020-02-25 22:39 菜鸟-程序猿 阅读(9829) 评论(0) 推荐(0)