会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
学无边涯
博客园
首页
新随笔
联系
订阅
管理
2023年2月13日
tp5.1 几种引入对象并且实例化的方法
摘要: 第一,原始方法 use think\Model; 使用use $user=news User() 缺点,使用一个都要引入在实例化 第二,依赖注入 也要引入use use think\Request; public function test1(Request $request){ var_dump(
阅读全文
posted @ 2023-02-13 00:20 学无边涯
阅读(96)
评论(0)
推荐(0)
编辑
公告