/** * 获取所有属性 * @return array */ public function getAttributes() { if (!array_key_exists('placeholder', $this->attributes)) { $this->attr('placeholder', $this->description()); } return HtmlUtility::mergeAttributes($this->getConfiguredAttributes(), $this->getMetaAttributes(), $this->attributes); }