摘要: //已经把最外面的$ 保存到了内部。var _$ = window.$, _jQuery = window.jQuery,...noConflict: function( deep ) { window.$ = _$; //把最外面的$重新赋值 if ( deep ) { window.jQuery = _jQuery; } return jQuery; },window.jQuery = window.$ = jQuery; 阅读全文
posted @ 2013-12-18 21:11 sexy_girl 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Binding 阅读全文
posted @ 2013-12-18 15:20 sexy_girl 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 一、前言什么是模板引擎,说的简单点,就是一个字符串中有几个变量待定。比如:var tpl ='Hei, my name is , and I\'m years old.';通过模板引擎函数把数据塞进去,var data ={ "name":"Barret Lee", "age":"20"};var result = tplEngine(tpl, data);//Hei, my name is Barret Lee, and I'm 20 years old.那这玩意儿有什么作用呢?其 阅读全文
posted @ 2013-12-18 11:19 sexy_girl 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1 username: 2 password: 3 4 define("uid", "user-A");define("pwd", "user-A-pwd");if(time() - $_POST['tid'] > 60*2 || $_POST['uid'] !== uid || decrypt(pwd . $_POST['tid']) !== $_POST['pwd']){ die("error");}时间超过2分钟uid不 阅读全文
posted @ 2013-12-18 11:13 sexy_girl 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-12-18 11:09 sexy_girl 阅读(513) 评论(0) 推荐(0) 编辑