会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
雨殇丶
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
2019年4月2日
三元运算符判断三种状态
摘要: 后台给三种值({0:''},{1:'是'},{2::'否'}),前端根据值显示对应内容。 value == 0 ? ' ' : value == 1 ? '是' : '否'
阅读全文
posted @ 2019-04-02 14:47 雨殇丶
阅读(2787)
评论(0)
推荐(0)
2019年4月1日
字符串截取的常用方法
摘要: string str = "123abc456"; int i = 3; 1. 取字符串的前i个字符 str=str.Substring(0,i); 2. 去掉字符串的前i个字符 str=str.Substring(i); 3. 从右边开始取i个字符 str=str.Substring(str.Le
阅读全文
posted @ 2019-04-01 13:59 雨殇丶
阅读(62826)
评论(0)
推荐(1)
2019年3月29日
WebService接口大全
摘要: Webservice常用接口大全 天气预报Web服务,数据来源于中国气象局 Endpoint :http://www.webxml.com.cn/WebServices/WeatherWebService.asmx Disco :http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?disco WSDL :h...
阅读全文
posted @ 2019-03-29 18:41 雨殇丶
阅读(1996)
评论(0)
推荐(0)
常用正则表达式大全
摘要: 验证数字:^[0-9]*$ 验证n位的数字:^\d{n}$ 验证至少n位数字:^\d{n,}$ 验证m-n位的数字:^\d{m,n}$ 验证零和非零开头的数字:^(0|[1-9][0-9]*)$ 验证有两位小数的正实数:^[0-9]+(.[0-9]{2})?$ 验证有1-3位小数的正实数:^[0-9]+(.[0-9]{1,3})?$ 验证整数和一位小数:^[0-9]+(.[1-9]...
阅读全文
posted @ 2019-03-29 18:38 雨殇丶
阅读(177)
评论(0)
推荐(0)
ASP.netMVC验证码
摘要: 1、复制下列代码,拷贝到控制器中。 #region 生成验证码图片 // [OutputCache(Location = OutputCacheLocation.None, Duration = 0, NoStore = false)] public ActionResult SecurityCode() { str...
阅读全文
posted @ 2019-03-29 18:36 雨殇丶
阅读(733)
评论(0)
推荐(1)
上一页
1
···
3
4
5
6
7
公告