摘要: html5新增加了一些语义元素,如header, footer, nav, aritcle, aside,等等。 然而,有些老款浏览器无法识别这些元素,会把它们当成 inline 元素对待,这会导致一些相当严重的样式问题。 解决办法:把这些语义元素全部声明为 块级(block)元素 如果要兼容 ie 阅读全文
posted @ 2017-01-05 10:48 sx00xs 阅读(215) 评论(0) 推荐(0) 编辑
摘要: javascript: PHP: PowerShell: C语言: C++: 阅读全文
posted @ 2017-01-01 09:58 sx00xs 阅读(628) 评论(0) 推荐(0) 编辑
摘要: var provinceValues=["010","020","028","0755","023","852"]; var [BeiJing,GuangZhou,ChendDu,ShenZhen,ChongQing,HongKong]=provinceValues; console.log(HongKong);//852 阅读全文
posted @ 2016-12-31 11:48 sx00xs 阅读(150) 评论(0) 推荐(0) 编辑
摘要: "People have always thought I wnated to be seen as a serious musician, but I didn't, I just wanted people to know that I was absolutely serious about 阅读全文
posted @ 2016-12-29 13:53 sx00xs 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 生成一个新的日期对象 : var someDate=new Date(); 获取日期月份中的天数: var date=someDate.getDate(); 获取 4 位数的年份: var year=date.getFullyear(); 留意:此时,必须使用getFullYear()方法,如果使用 阅读全文
posted @ 2016-12-29 13:43 sx00xs 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 在网上找到此例子,写几点看过后的理解:1,变量在命名时,采用的匈牙利命名法,看起来不如驼峰命名法容易理解。 2,使用 for 循环给li元素添加事件处理程序时,因getElementsByTagName返回来的是一个nodelist对象,会实时变动,应将长度赋值给一个局部变量 len,获取一个快照。 阅读全文
posted @ 2016-12-27 13:26 sx00xs 阅读(800) 评论(0) 推荐(0) 编辑
摘要: 安装好 zend studio后,配置 apache服务器时,设置 configuration directory时,需选中 xampp\apache里面的 conf 文件夹,即完整的路径为: *\xampp\apache\conf。 阅读全文
posted @ 2016-12-26 14:16 sx00xs 阅读(373) 评论(0) 推荐(0) 编辑
摘要: js中的函数有一个很有意思的地方,即函数自身也方法。 apply方法让我们可以建立一个参数数组并用其来调用函数。 apply方法接受两个参数,第一个是将被绑定给 this 的值。第二个就是一个参数数组。 阅读全文
posted @ 2016-12-25 11:31 sx00xs 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 此例子涉及的知识点为:setTimeout函数,对arguments.calle的理解 阅读全文
posted @ 2016-12-25 11:27 sx00xs 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 当一个函数前面加上 new 操作符来调用,此时 this 会被绑定到新生成的对象上。 这既是所谓的构造函数调用模式。 阅读全文
posted @ 2016-12-24 12:19 sx00xs 阅读(83) 评论(0) 推荐(0) 编辑