自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

转载 Chrome Developer Tool 调试技巧

Chrome浏览器得益于其优秀的V8解释器,javascript执行速度和内存占有率表现非常优秀。对于html+css+javascript前台技术的学习或者开发,浏览器developer tool的使用时必不可少的,也能极大的提高学习或者开发效率。本文根据版本 23.0.1271.10。在window下,开启developer tool的快捷键为F12。1 Developer too

2014-04-22 10:47:08 2230

原创 动态转换Bytes 为 KB, MB, GB, TB

public static String formatFileSize(long size) { String hrSize = null; double b = size; double k = size/1024.0; double m = ((size/1024.0)/1024.0); double g = (((size/1024.0)/1024.

2014-04-16 09:23:31 2072

转载 设置table的td宽度不随文字变宽

页面中table宽度设置width="500px"之后,宽度仍然不是固定的,文字太长后不换行,table变形。解决办法:table 设置 宽度,绝对宽度和相对都可以table-layout:fixed ;第一行的设置宽度,留一个不设,自由伸缩。操作之后,table是宽度固定,但里面的文章如果很长,文字还是会溢出解决办法:方法一、在 td 里面 加上 styl

2014-04-03 10:30:22 3995

转载 Ubuntu/Lunix VI编辑器使用

vi编辑器是任何Unix及Linux系统下标准的编辑器,他的强大不逊色于任何 最新的文本编辑器,这里只是简单地介绍一下他的用法和一小部分指令。由于对Unix及Linux系统的任何版本,vi编辑器是完全相同的,因此您能够在其 他任何介绍vi的地方进一步了解他。Vi也是Linux中最基本的文本编辑器,学会他后,您将在Linux的世界里畅行无阻。1、vi的基本概念基本上vi能够分为三种状

2014-04-02 17:15:57 532

转载 mysql查询今天、昨天、7天、近30天、本月、上一月 数据

查询语句:今天:SELECT * FROM table WHERE TO_DAYS(column_time) = TO_DAYS(NOW());SELECT * FROM table WHERE DATE(column_time) = CURDATE();昨天SELECT * FROM 表名 WHERE TO_DAYS( NOW( ) ) – TO_DAYS( 时间字

2014-03-27 16:08:14 619

翻译 std::bind

• std::bind is a template function that returns a std::function object that binds a set of arguments to a function.• the std::bind receives a pointer to a function (it also can be a lambda expre

2014-03-08 21:55:36 394

翻译 std::function

• std::function is a STL template class that provides a very convenient wrapper to a simple function, to a functor or to a lambda expression.For example:• store several functions, functo

2014-03-08 21:48:22 511

翻译 decltype

•decltype is a new keyword that infers the type of a given expression•itis used mainly on return typesFor example:•decltypeto var:•decltypeto specify the return type:•decltypeto the templa

2014-03-08 21:38:14 454

翻译 auto

• auto is used to infer the type of the variable that is being declared and initialized• In ‘old’ C++:• In C++ 11:• Anyway,there are restrictions on its usage:• You cannot us

2014-03-08 21:12:01 438

翻译 Strongly Typed Enums

•TheC++ 11 solve the known problems with the traditional enums:•the scope of the enumerators•Implicit conversion to an integer•Inability to specify underlying typeFor  exam

2014-03-08 20:45:12 577

翻译 nullptr

•  In C and ‘old’C++ the null pointer is the preprocessor macro NULL. ( just a plain 0 )•  C++11 introduces nullptr; A keyword that unambiguously represents a pointer pointing to nowhere. ( std::n

2014-03-08 20:06:32 658

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除