- 博客(26)
- 收藏
- 关注
转载 关于如何在web网站页面点击左侧栏目刷新右侧数据(不刷新当前页)
原文:https://www.cnblogs.com/chenzhiyu/p/7877673.htmliframe中的target属性在使用iframe的时候,我们有时候会遇到,外面的链接,去操作iframe中的页面<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head&
2021-01-21 10:38:36
462
原创 C# 后台图片重命名下载
/// <summary> /// 图片重命名下载 /// </summary> /// <param name="filePath">图片物理路径</param> /// <param name="fileName">图片名称(全称包括后缀名),如你想要你的图片以身份...
2019-05-29 16:40:06
519
原创 C# 批量打包下载图片(仅供参考,勿喷)
/// <summary> /// 定义一个图片的类 /// </summary> public class ATLRLAttachment { /// <summary> /// 字节流 /// </su...
2019-05-29 16:36:50
2131
转载 carouFredSel(图片轮播)参数
原文地址:https://blog.youkuaiyun.com/gubacon/article/details/50820655参数列表:参数名 默认值 说明circular true 循环模式,true为无限循环,false为单轮循环。infinite true 是否启用循环,默认起用。当circular设置为false的时候,再把infin...
2019-05-15 10:51:51
963
转载 Sql2008r2 数据库清除日志文件亲测有效
USE[master]GOALTERDATABASE[数据库名]SETRECOVERYSIMPLEWITHNO_WAITGOALTERDATABASE[数据库名]SETRECOVERYSIMPLEGOUSE[数据库名]GODBCCSHRINKFILE(N'[数据库日志文件名称]',0,TRUNCAT...
2019-04-25 15:13:36
1492
转载 ASP.NET MVC Gzip 压缩
原作者地址写一个ActionFilter来实现GZIP:CompressFilterAttribute.csusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using Syst
2017-10-10 10:52:40
1072
转载 微信jssdk批量添加卡券接口(踩坑经验)
微信jssdk批量添加卡券接口(踩坑经验)1)首先是官方接口文档: 1、批量添加卡券接口:https://mp.weixin.qq.com/wiki?action=doc&id=mp1421141115&t=0.08619731531288366&token=&lang=zh_CN#wxkq3 ; 2、卡券扩展字段cardExt说明:https://mp.wei
2017-07-13 12:00:08
3853
原创 微信jssdk领取卡券
wx.ready(function () { //添加卡券 document.querySelector('#addCard').onclick = function () { wx.addCard({ cardList: [ {
2017-07-13 11:57:12
2370
原创 c#字符串转换成double数组
string strText="1,3,2,3,3242,324";string[] strArr=strText.Split(',');double[] intArr=new double[strArr.Length];for(int i=0;i{ intArr[i]=Convert.ToInt32(strArr[i]);}
2017-05-04 22:34:44
10732
2
转载 JS简易秒表计时器
原文超链接点击打开链接html lang="en">head>meta charset="UTF-8">title>js计时器title>head>body>input type="text" value="00:00">input type="button" value="开始">input type="button" value="结束">input type="butt
2017-04-11 14:23:36
565
转载 ASP.NET MVC上传文件的方法
原文链接点击打开链接1.Form表单提交12345Form提交<form action="@Url.Action("SavePictureByForm")" enctype="multipart/form-data" method="post"> <input id="
2017-03-20 14:12:55
526
原创 C#调用HTTP接口
string url = "http://16.8.3.91:8089/api/query/Bicycle?deviceno=1&operator=2&sign=9fe789d7a5629a59ed56d7a256dc5a1a&cardno=0310";//http需要传递的参数与地址 WebRequest wRequest = WebRequest.Create(url
2017-02-28 10:33:09
3460
转载 C#将图片字节流转为Base64直接放入html的img标签src属性中
原地址:http://www.cnblogs.com/RedSky/p/5786703.html点击打开链接1,图片要转为byte[],2,注意加上“data:image/jpeg;base64,”,这里jpeg可以换成其他。string html = "" + Convert.ToBase64String(byte[] bytes) + "' />";
2017-02-10 15:55:16
4425
转载 C#字符串截取
C#几个经常用到的字符串截取一、1、取字符串的前i个字符(1)string str1=str.Substring(0,i);(2)string str1=str.Remove(i,str.Length-i);2、去掉字符串的前i个字符string str1=str.Remove(0,i);string str1=str.SubString(i);3、从右
2017-01-09 15:51:51
267
转载 如何用Restore DataBase把数据库还原到指定的路?
restore database 数据库名from disk='备份文件路径'with move '数据库文件名'to '数据库文件放置路径',move '日志文件名'to '日志文件存放置路径'go如:restore database EaseWefrom disk='H:\EaseWe.bak'with move 'EaseWe'to
2016-12-20 14:41:08
14762
原创 sql中截取连个字符串之间的数据
截取第二个','与第三个','直接的数据declare @str nvarchar(50);set @str=',1,6,7,8,';select LEFT(SUBSTRING(@str,charindex(',',@str,2)+1,len(@str)),CHARINDEX(',',SUBSTRING(@str,charindex(',',@str,2)+1,len(@str
2016-12-20 10:51:33
3690
原创 C#中将json转化成list
在程序集中添加引用 System.Web.Extensions在类中添加引用using System.Runtime.Serialization;using System.Web.Script.Serialization;{"Total":"0","Rows":[{"id":"31","project":"6","project_name":"测
2016-12-07 09:25:02
20812
4
原创 C#中将string类型的json字符串转化成数组
添加引用 using Newtonsoft.Json.Linq;using Newtonsoft.Json;using System.Collections.Generic;string jsonText = {"Total":"0","Rows":[{"id":"31","project":"6","project_name":"4.【综合业务
2016-12-07 09:17:40
30935
2
转载 JQuery和Js中,如何让ajax执行完后再继续往下执行?
$.ajax ({ cache: false, async: false, // 太关键了,学习了,同步和异步的参数 dataType: 'json', type: 'post', url: "../handle/Ladder_Fee_Code.ashx?ajaxaction
2014-08-13 11:25:35
2672
转载 用sql怎么表示上个月26号到本月25号这个时间段
--- 字符型 select 上个月26号 = convert(varchar(8),DATEADD(m, -1, getdate()),21)+ '26 ' , 本月25号=convert(varchar(8),getdate(),21)+ '25 ' ---日期型 select 上个月26号 = convert(datetime,convert(varchar(8),DATEADD
2014-07-02 15:37:57
4816
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人