04 2012 档案

摘要:按照需要,使用Jquery.Ajax方法来实现登录。但因为后台数据库是gbk,debug调试发现传送进来的总是以utf-8。开始想到是不是apache的defaultcharset设置的问题。查看手册:AddDefaultCharset指令说明当应答内容是text/plain或text/html时,在HTTP应答头中加入的默认字符集语法AddDefaultCharset On|Off|charset默认值AddDefaultCharset Off作用域server config, virtual host, directory, .htaccess覆盖项FileInfo状态核心(C)模块cor 阅读全文
posted @ 2012-04-24 20:19 zaric 阅读(823) 评论(0) 推荐(0)
摘要:安装XHProf:wget http://pecl.php.net/get/xhprof-0.9.2.tgztar zxf xhprof-0.9.2.tgzcd xhprof-0.9.2cp -r xhprof_html xhprof_lib<directory_for_htdocs>cd extensionphpize./configuremakemake install编辑php.ini:[xhprof]extension=xhprof.so;; directory used by default implementation of the iXHProfRuns; inter 阅读全文
posted @ 2012-04-24 16:08 zaric 阅读(860) 评论(0) 推荐(0)
摘要:jQuery綁定事件由于实现过程牵扯解绑定和绑定众多事件。debug带来诸多不便。查看当前绑定的事件$(element).data('events')会返回一事件对象,改对象包含绑定的诸多事件属性。 阅读全文
posted @ 2012-04-08 03:25 zaric 阅读(128) 评论(0) 推荐(0)