摘要:
表model类中 //Getter方法 处理content字段 public function getContentText(){ $tmp = strip_tags($this->content); $temLen = mb_strlen($tmp); return mb_substr($tmp, 阅读全文
摘要:
$tmp = strip_tags($model->content);$temLen = mb_strlen($tmp);return mb_substr($tmp,0,20,'utf-8').(($temLen>20)?'...':""); 阅读全文