摘要: 1.依赖注入,将类以参数的形式传入方法中, 相当于在方法中 new Store(); namespace app\api\controller;use model\ModelEntity as Store;class Api{ //依赖注入 Store,相当于在方式中已 $store = new S 阅读全文
posted @ 2023-04-25 15:12 东方素 阅读(10) 评论(0) 推荐(0) 编辑