今天遇到
session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied 这个错误
,因为php没100此session start就会尝试清除一次session 的cache,但是 显然/var/lib/php5的权限是root,而且在/etc/cron.d/php5中已经有一个定时清理器是root的,所以需要把php.ini 中的
session.gc_probability 改为0.
return false from within a jQuery event handler is effectively the same as calling both e.preventDefault and e.stopPropagation on the passed jQuery.Event object. e.preventDefault() will prevent the default event from occuring, e.stopPropagation() will prevent the evet from bubbling up and return false will do both. Note that this behaviour differs from normal (non-jQuery) event handlers, in which, notably, return false does not stop the event from bubbling up . 所以on前半部分的selector必须是静态的。
评论
发表评论