- 博客(5)
- 资源 (14)
- 收藏
- 关注
原创 js参数不要直接传汉字,防止编码错误,转换成UniCode编码
C#转换UniCode方法/// /// 字符串转为UniCode码字符串 /// /// /// public static string StringToUnicode(string s) { char[] charbuffers = s.To
2015-01-22 14:53:42 2737
原创 textarea换行问题
Mvc中textarea文本换行@MvcHtmlString.Create(Model.CrowdfundDescribe.GoodAt.Replace("\r\n", ""))js中 textarea 文本换行.replace(/\n/g, '')
2015-01-22 14:50:36 748
原创 MVC操作 DropDownList
1、枚举转下拉框public static SelectList ToSelectList(this TEnum enumObj, bool markCurrentAsSelected = true, int[] valuesToExclude = null) where TEnum : struct { if (!typeof
2015-01-21 10:55:33 1023
转载 配置服务器流程
@打开防火墙,添加远程桌面端口号入站规则(远程端口号和后台端口号)http://jingyan.baidu.com/article/e9fb46e19ff8137521f7660c.html@修改远程桌面端口号http://jingyan.baidu.com/article/358570f67d22b2ce4624fc5f.html (重启后生效)@将A
2015-01-14 18:10:56 753
原创 返回Json格式在IE下会提示打开或下载
问题发现于 异步上传图片 返回结果在firefox、chrome正常,但是在ie下提示打开或下载解决办法:返回的json数据类型定义为 "text/html"return Json(new { Result = true, Obj = pluploadFileMod
2015-01-14 11:04:24 2744
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人