2020年4月20日

给类动态添加新方法

摘要: 给类动态添加新方法 官方文档有例子,点击查看 /** * 给类动态添加新方法 * * @author fantasy */ trait DynamicTrait { /** * 自动调用类中存在的方法 */ public function __call($name, $args) { if(is_c 阅读全文

posted @ 2020-04-20 09:15 追风的浪子 阅读(619) 评论(0) 推荐(0) 编辑

导航