摘要:
1、DataTables的默认配置 2、DataTables的一些基础属性配置 3、数据排序 4、多列排序 5、隐藏某些列 6、改变页面上元素的位置 7、状态保存,使用了翻页或者改变了每页显示数据数量,会保存在cookie中,下回访问时会显示上一次关闭页面时的内容。 8、显示数字的翻页样式 9、水平 阅读全文
阅读排行榜
AutoMapper小结
2014-01-03 16:58 by 呆河马, 43089 阅读, 收藏,
摘要:
先来看看我所虚拟的领域模型。这一次我定义了一个书店(BookStore): 书店有自己的地址(Address): 同时书店里放了N本书(Book): 每本书都有出版商信息(Publisher): 每本书可以有最多2个作者的信息(Author): 每个作者都有自己的联系方式(ContactInfo): 阅读全文
10 个免费的Bootstrap Admin 主题,模板收集
2013-12-02 12:44 by 呆河马, 27646 阅读, 收藏,
摘要:
In designing websites today, one of the must have frameworks is the twitter bootstrap. To those who do not have an exact idea about the benefit of this framework, but are familiar with the social media account – twitter, it has nothing to do with the boot laces. It usually contains non-responsive an 阅读全文
关于单例模式中,饿汉式和懒汉式有什么区别?
2012-11-12 21:33 by 呆河马, 7002 阅读, 收藏,
摘要:
2.懒汉式如果在创建实例对象时不加上synchronized则会导致对对象的访问不是线程安全的,但是我们可以改造一下。 阅读全文
常用string格式化
2014-08-31 19:26 by 呆河马, 6117 阅读, 收藏,
摘要:
1、格式化货币(跟系统的环境有关,中文系统默认格式化人民币,英文系统格式化美元) string.Format("{0:C}",0.2) 结果为:¥0.20 (英文操作系统结果:$0.20) 默认格式化小数点后面保留两位小数,如果需要保留一位或者更多,可以指定位数 string.Format("{0: 阅读全文