在类内使用应该以数组形式传入this
private function getMutualFromSina ($focusList) { return array_filter($focusList, array($this,"filterSinaList")); } private function filterSinaList ($value) { return in_array($value, $this->fansList); }
去芜存菁
在类内使用应该以数组形式传入this
private function getMutualFromSina ($focusList) { return array_filter($focusList, array($this,"filterSinaList")); } private function filterSinaList ($value) { return in_array($value, $this->fansList); }
在live之前给选择器加上die() 结束该选择器之前绑定的所有事件