October 中 Plugin.php
(1) 声明一个RegisterComponents
'Zhijin\Examination\Components\Examination' => 'examinationComponent',
(2) use Zhijin\Examination\Models\Examination as ExaminationModel;
however:(1)与(2)的区别在于
前端测试数据:
tips: 可能会出现冲突,找不到路径的主要原因是命名冲出,找不到想要找的component,这个时候就是用到了as作为解决的办法。
October( the name is already in use)
最新推荐文章于 2022-08-15 17:18:55 发布