JS--WIKI
摘要:0. JS的基本数据类型 Boolean Number String Array Object Null Undefined1.如果浏览器禁用活着不支持JS的话,则JS不会被尝试执行,noscript则会被执行您的浏览器不支持JAVASCRIPT2. javascript 严格区分大小...
阅读全文
posted @
2015-10-31 01:59
aoun
阅读(280)
推荐(0)
ubuntu php mysql
摘要:ubuntu14.04 搭建lamp环境http://jingyan.baidu.com/article/ceb9fb10d572d88cad2ba093.html核心命令:sudo apt-get install apache2sudo apt-get install mysql-serversu...
阅读全文
posted @
2015-10-24 18:05
aoun
阅读(144)
推荐(0)
PHP常用函数整理
摘要:字符串处理:ucfirst 字符串首字母大写ucwords 字符串中每个单词首字母大写nl2br 将换行符("\n")转换为xhtml兼容("")
阅读全文
posted @
2015-10-23 12:01
aoun
阅读(146)
推荐(0)
TP best practice
摘要:1.因为可以绕过前端控制器(index.php),所以除了index.php和Public目录之外,TP核心和Application应该放在Web目录之外
阅读全文
posted @
2015-10-19 23:24
aoun
阅读(143)
推荐(0)
CSS 回字布局
摘要:1 2 3 4 5 6 34 35 36 37 38 39 40 41 42
阅读全文
posted @
2015-10-17 14:37
aoun
阅读(579)
推荐(0)
JS 快速排序
摘要:1 2 3 4 5 6 27 28 29 30 31
阅读全文
posted @
2015-10-11 00:34
aoun
阅读(274)
推荐(0)
JS 对象引用和深拷贝
摘要:1 var a = XX;2 var b = a;如果a是基本类型,则为值拷贝;如果a是对象,则是引用拷贝。1.深拷贝 1 function deepCopy(obj) { 2 if (typeof obj != 'object') 3 ret...
阅读全文
posted @
2015-10-11 00:08
aoun
阅读(280)
推荐(0)
iframe 的操作
摘要:1.父子窗口的相互操作 父窗口: iframe.contentWindow.document OR iframe.contentDocument 1 2 3 4 5 6 16 17 18 19 20 21 子窗口: window.parent (父窗口) ...
阅读全文
posted @
2015-10-10 22:35
aoun
阅读(203)
推荐(0)
JS 的闭包
摘要:1.什么事闭包?函数嵌套函数,内部函数可以引用外部函数的参数或变量,参数或变量不会被垃圾回收机制所收回,for example: 1 function A() { 2 var a = 1; 3 function B() { 4 alert(a); 5 } 6 ...
阅读全文
posted @
2015-10-10 21:53
aoun
阅读(269)
推荐(0)
JS 跨域
摘要:1.解决主域和子域的跨域问题 a.com b.a.com How: document.domain = 'a.com';2.服务器代理3.script标签的src属性的URL参数4.window.location.hash 参数
阅读全文
posted @
2015-10-10 21:08
aoun
阅读(101)
推荐(0)
JS 的一些知识点
摘要:1.数组 var arr = []; arr.push(); arr.pop();2.json对象 var objJSON = {key:value} objJSON.key objJSON[key] var value = objJSON[key] || ''; // 当KEY为un...
阅读全文
posted @
2015-10-10 17:06
aoun
阅读(131)
推荐(0)
ThinkPHP 的一些知识
摘要:1.定义控制器层不一定要继承Controller,但是要输出模板的话,却是必须继承了。2.通过设置CONTROLLER_LEVEL(默认为1),可以通过子目录把控制器分层存放。(比如 'CONTROLLER_LEVEL' => 2, 可以分两层存放)3.访问控制器方法可以有前置和后置操作,比如(_b...
阅读全文
posted @
2015-10-08 22:04
aoun
阅读(169)
推荐(0)
PHP 发展历程
摘要:5.3 (1)引入了延迟静态绑定1 abstract class A {2 public static function create() {3 return new static(); // 此处不能用self,因为self指向解析上下文而不是调用上下文4 } ...
阅读全文
posted @
2015-10-02 03:14
aoun
阅读(172)
推荐(0)