摘要: 这是一个用于文档注释用的,不仅仅PHP哦,Javascript、Java、C语言等等都支持,输入”/**”回车将为文档(类、函数等)生成Documentor。 阅读全文
posted @ 2015-01-09 11:24 lcw5945 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 安装:1. ctrl + shift + p2. 输入Install Package3. 搜索:SublimeTmpl4. 回车安装设置:1. Preference - > Package Settings -> SublimeTmpl - > Settings-Default"attr": { ... 阅读全文
posted @ 2015-01-07 16:18 lcw5945 阅读(416) 评论(0) 推荐(0) 编辑
摘要: Object.prototype.x = 10; var w = 20;var y = 30; //console.log(x); // 10 (function foo() { var w = 40; var x = 100; with ({z: 50}) { console.log(... 阅读全文
posted @ 2015-01-07 10:50 lcw5945 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 隐式声明全局变量,在没有关键字var情况下 默认为全局变量如下:function hello(){ str = "123"; //全局变量}function hello(){ var a = b = "12"; // a 局部变量,b全局变量}function hello(){ ... 阅读全文
posted @ 2015-01-06 10:56 lcw5945 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 函数声明:function hello(){ alert();}函数表达式:var hello = function (){ alert();}区别:1. 声明函数可以在声明前调用它,表达式不可以。2. 声明函数不能直接使用()调用,表达式可以。(js中只有表达式可以使用())3. 表达式会引入变量... 阅读全文
posted @ 2015-01-06 10:01 lcw5945 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1. 呈现模式document.compatMode == "CSS1Compat"; 标准模式document.compatMode == "BackCompat"; 混合模式if(document.compatMode == "CSS1Compat"){ return "SATAND";}... 阅读全文
posted @ 2015-01-05 17:24 lcw5945 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 特点:1. nodeType 的值为1.2. nodeName 的值为元素的标签名(大写);3. nodeValue 的值为null.4. parentNode 可能是Element、Text、Comment、ProcessingInstruction、CDATASection、EntityRefe... 阅读全文
posted @ 2015-01-05 14:33 lcw5945 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/gueter/archive/2007/03/08/1524447.aspx引言HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。它于1990年提出,经过几年的使用与发展,得到不断地完善和扩展。目前在WWW中... 阅读全文
posted @ 2015-01-05 09:44 lcw5945 阅读(169) 评论(0) 推荐(0) 编辑
摘要: //获得urlvar url = document.URL;//获得域名var domain = document.domain;//取得源页面的urlvar referrer = document.referrer;1. 对domian赋值不能跨域比如在show.17173.com;documen... 阅读全文
posted @ 2015-01-05 09:41 lcw5945 阅读(109) 评论(0) 推荐(0) 编辑
摘要: hahah 多个css样式值时显示会先解析name1 的值,然后再解析name2 的值,name2 中的属性会覆盖name1中相同的属性,如果不相同的都会显示出来h1.name1{ font-family: Georgia, serif; text-align: center;}h1.name2{... 阅读全文
posted @ 2014-12-31 15:59 lcw5945 阅读(313) 评论(0) 推荐(0) 编辑