Skip to content

Instantly share code, notes, and snippets.

@shingchi
shingchi / memcached-status-page.md
Created May 16, 2016 13:42 — forked from jbraithwaite/memcached-status-page.md
Memcached Status page in PHP

Screenshot

常用的 HTML 头部标签

详细介绍参见原文:yisibl/blog#1

<!DOCTYPE html> <!-- 使用 HTML5 doctype,不区分大小写 -->
<html lang="zh-cmn-Hans"> <!-- 更加标准的 lang 属性写法 http://zhi.hu/XyIa -->
<head>
    <meta charset='utf-8'> <!-- 声明文档使用的字符编码 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <!-- 优先使用 IE 最新版本和 Chrome -->
<script language="javascript">
/*
* 写成类的方法格式如下:str.trim()
*/
String.prototype.trim=function(){ //删除左右两端的空格
return this.replace(/(^\s*)|(\s*$)/g, "");
}
String.prototype.ltrim=function(){ //删除左边的空格
return this.replace(/(^\s*)/g,"");
}
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
(function ($) {
$.event.special.textchange = {
[
{
name:"HTML5",
uri:"http://www.w3.org/TR/html5/single-page.html",
category:"markup"
},
{
name:"HTML 5.1",
uri:"http://www.w3.org/TR/html51/single-page.html",
category:"markup"