- 博客(14)
- 资源 (4)
- 收藏
- 关注
转载 C# NOPI操作word
using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Microsoft.Office.Interop.Word;using System.IO;using NPOI.HSSF;u
2018-01-30 14:17:41 4187
转载 bootstrap-table
$(function () { //1.初始化Table var oTable = new TableInit(); oTable.Init(); //2.初始化Button的点击事件 var oButtonInit = new ButtonInit(); oButtonInit.Init();});var TableInit = fu
2018-01-26 11:54:10 241
原创 bootstrap-select 动态添加数据
select id='name' class="form-control selectpicker" data-live-search="true"> $.ajax({ // get请求地址 url: basePath, dataType: "json", success: function (data) { var
2018-01-26 11:46:26 14398 12
转载 [译]bootstrap-select (selectpicker)方法
方法.selectpicker('val')您可以通过调用val元素上的方法来设置所选值。12$('.selectpicker').selectpicker('val', 'Mustard');$('.selectpicker').selectpicker('val', ['Mustard','Reli
2018-01-26 11:41:27 2197
原创 C# 去集合中重复的对象
/// ///去集合重复对象的类 /// public static IEnumerable DistinctBys(this IEnumerable source, Func keySelector) { HashSet hashSet = new HashSet();
2018-01-25 17:22:03 992
原创 bootstrap 下拉复选框
//会有你想要的(http://www.jq22.com/) jQuery bootstrap-select可搜索多选下拉列表插件 --> $(window).on('load', function ()
2018-01-25 17:15:15 2906
原创 .net 使用源组件Docx
//先复制模板出来 string sourceFilePath = Server.MapPath("/Resource/dowload/TestPaperByA4.docx"); string destinationFilePath = Server.MapPath("/temp/" + key); //目标 Syste
2018-01-23 09:52:19 905
原创 C#字典类型根据Key排序
dicStuGrade = (from d in dicStuGrade orderby d.Key ascending select d).ToDictionary(p => p.Key, p => p.Value);
2018-01-20 15:24:47 1618
原创 永远不会重复的复杂iD
public static string GuidTo16String() { long i = 1; foreach (byte b in Guid.NewGuid().ToByteArray()) { i *= ((int)b + 1);
2018-01-20 14:54:15 7332
原创 JSON格式转对象
using Newtonsoft.Json;List ChapterIdList = JsonConvert.DeserializeObject>(Request[""]);
2018-01-20 14:50:33 324
原创 JS 时间格式为/Date(1332919782070)/ 转化为正常的格式
function ChangeDateFormat(val) { if (val != null) { var date = new Date(parseInt(val.replace("/Date(", "").replace(")/", ""), 10)); //月份为0-11,所以+1,月份小于10时补个0 var month = da
2018-01-19 16:26:32 3935
原创 关于img src动态生成图片
public ActionResult GetMarkingDetailIMG(string TestPaperID, string TestPaperProblemID, string ExamStudentID,int Index) { byte[] bytes = new byte[] { }; //取出试题
2018-01-02 09:34:31 1573
原创 关于HttpWebRequest的Post提交及后台获取数据
//请求public static string Requests(string url,string param) { byte[] byteArray = Encoding.UTF8.GetBytes(param); string content = string.Empty; HttpWebR
2018-01-02 09:32:00 1254
C# 函数超时多功能检测
2019-12-27
C#根据入径解析自定义的Config文件
2018-08-07
框架 WCF 过滤器在返回结果前如何获取值
2022-09-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人