Skip to content

Instantly share code, notes, and snippets.

@kele5240
kele5240 / DateFormat
Created September 4, 2017 02:52
日期格式化
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
@kele5240
kele5240 / HTML.html
Created February 7, 2017 08:28
html:5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
</html>
@kele5240
kele5240 / CSS:webkit 11px
Created September 3, 2012 07:51
CSS:webkit 11px
-webkit-text-size-adjust:none;
@kele5240
kele5240 / HTML:Starting Template
Created September 3, 2012 07:45
HTML:Starting Template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Robots" content="index,follow">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="">
<meta name="description" content="">
<title></title>
</head>