• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
梦幻仙境的精灵
博客园    首页    新随笔    联系   管理    订阅  订阅
2014年12月19日
ie、IE兼容模式,提示SCRIPT1028: 缺少标识符、字符串或数字
摘要: 旧版ie下json最后一项是不允许有逗号的为了更好的兼容各个浏览器,json最后的逗号最好不加 阅读全文
posted @ 2014-12-19 10:20 梦幻仙境的精灵 阅读(277) 评论(0) 推荐(0)
RSA 加解密
摘要: #region RSA public static byte[] GetBytes(String num) { BigInteger n = new BigInteger(num, 10); String s =... 阅读全文
posted @ 2014-12-19 10:17 梦幻仙境的精灵 阅读(169) 评论(0) 推荐(0)
3DES 加解密,对长度不限制
摘要: #region 3DES /// /// 3DES加密 /// /// 需加密的字符串 /// 密匙 /// public static string DES3Encrypt(string str... 阅读全文
posted @ 2014-12-19 10:16 梦幻仙境的精灵 阅读(1820) 评论(0) 推荐(0)
实体类和xml之间的序列化
摘要: /// /// Xml序列化与反序列化 /// public class XmlUtil { public static string GetRoot(string xml) { if (xml == null) ... 阅读全文
posted @ 2014-12-19 10:14 梦幻仙境的精灵 阅读(554) 评论(1) 推荐(0)
常用
摘要: 1、 style="word-break: break-all" 自动回车2、图片链接 3、@using(Html.BeginForm("Upload","File",FormMethod.Post,new {enctype="multipart/form-data"})){@Html.TextBo... 阅读全文
posted @ 2014-12-19 10:07 梦幻仙境的精灵 阅读(125) 评论(0) 推荐(0)
SQL Server 自增字段重置
摘要: --- 删除原表数据,并重置自增列truncate table tablename --truncate方式也可以重置自增字段--重置表的自增字段,保留数据DBCC CHECKIDENT (tablename,reseed,0) -- 设置允许显式插入自增列SET IDENTITY_INSERT ... 阅读全文
posted @ 2014-12-19 09:56 梦幻仙境的精灵 阅读(345) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3