- 博客(19)
- 资源 (6)
- 收藏
- 关注
原创 MVC上传Excel读取数据
HTML<a class="easyui-linkbutton l-btn-new-plain" data-options="iconCls:'icon-remove'" onclick="Import()">导入</a><input type="file" id="fileTxt2" onchange="isHaveFile()" style="display:none" />JSfunction Import() { $("#fileT...
2021-03-24 11:49:56
409
原创 文件夹【包含子文件夹或文件】进行压缩并下载
文件夹【包含子文件夹或文件】进行压缩并下载压缩下载调用:例类压缩 public static void CreateZipFileTTT(string folderToZip, string zipedFile) { bool result = false; if (!Directory.Exists(folderToZip)) return; ZipOutputStream zipStream = new ZipO
2021-03-01 10:28:18
324
原创 SQL查询的奇怪问题,记录一下。
https://blog.youkuaiyun.com/baidu_20650485/article/details/41119869?utm_medium=distribute.pc_relevant_bbs_down.none-task-blog-baidujs-1.nonecase&depth_1-utm_source=distribute.pc_relevant_bbs_down.none-task-blog-baidujs-1.nonecasehttps://blog.youkuaiyun.com/yuj
2021-01-10 15:00:24
177
1
原创 c#:webform,ajax
aspx:var a=17;$.ajax({ type: "post", url: "Index.aspx/CsFun", contentType: "application/json; charset=utf-8", data: "{ a:'" + a + "'}", success: function (data) { var return_a...
2019-08-14 14:39:37
228
原创 c#:mvc单选按钮(性别)
@item.Sex --性别(1女 2男 0保密)<input name="sex" value="1" type="radio" disabled="disabled" @(item.Sex == 1 ? "checked" : "") />女 <input name="sex" value="2" type="radio" disabled="di...
2019-08-14 14:21:11
2781
翻译 flex布局
http://www.runoob.com/w3cnote/flex-grammar.html一 、 Flex布局是什么 ?Flex是Flexible Box的缩写,意为"弹性布局",用来为盒状模型提供最大的灵活性。任何一个容器都可以指定为Flex布局。.box{display: flex;}行内元素也可以使用Flex布局。.box{display: inline-flex;}...
2019-08-06 10:57:18
107
原创 js:产生不重复随机数
<script> var res = []; $(function () { //生成0到200内60个不重复的随机数[0,200) createRandom(60, 0, 200); res = res.sort(sortNum); for (var i = 0; i < res.length; ...
2019-08-06 10:52:10
359
原创 ado ---.asp界面 : 增、删、改、查
//ado---.asp界面<html> <head> <title></title> <style> table,tr,td{ border-spacing: 0; border-collapse: collap...
2019-08-06 10:50:00
233
翻译 c#:datatable转换为对象
public static class DataTableToEntity{ public static T TableToEntity<T>(DataTable dt, int rowindex = 0, bool isStoreDB = true) { Type type = typeof(T); T entity = Activa...
2019-08-06 10:40:58
1178
原创 c#:webform使用验证码生成器
AspxAjax请求Aspx.cs页面方法GetNumber ----------- $("…").src="…"Aspx.cspublic void GetNumber(){ PicValCodeHeler mHelper = new PicValCodeHeler(); //***生成四位随机数 string number = mHelper.CreateR...
2019-08-05 14:09:33
347
原创 c#:mvc使用验证码生成器
View: <img id="NumberCode" style="cursor: pointer;" src="@Url.Action("GetNumber", "Login")?width=130&height=34&t=@DateTime.Now.Ticks" title="看不清,点击换一张" />JS: $("#Numbe...
2019-08-05 13:56:17
261
原创 c#:mvc中jquery上传图片
view:<body> <input type="file" class="ajax_file_upload" /></body>Js://引用jquery.js,,,版本最新的把!!!<script> $(function () { $("body").on("change", ".ajax_file_u...
2019-08-05 11:08:17
669
翻译 c#:微信参数二维码
原:https://blog.youkuaiyun.com/panzhixin2012/article/details/28594353 JsonData bejson = JsonMapper.ToObject(tockes); //引用 LitJson.dllLitJson.dll:https://download.youkuaiyun.com/download/weixin_43737791/114620...
2019-08-03 11:27:39
367
原创 小程序-支付
后台接口:小程序端:参数为上面图片中返回参数值,一一对应 wx.requestPayment({ timeStamp: '', nonceStr: '', package: '', signType: '', paySign: '', success: function(res) { ...
2019-07-20 16:49:36
249
转载 微信小程序下拉刷新与触底加载效果
**微信小程序下拉刷新与触底加载效果**下拉刷新效果:触底加载效果:JS:var that; Page({ data: { hasMoreData: true, isRefreshing: false, isLoadingMoreData: false }, ...
2019-07-17 15:41:04
3065
1
LitJson.dll.zip
2019-08-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人