手册目录
API
返回值:实例对象
获取任意类的单例,QueryList内部方法,开放出来供大家使用。
原型:
getInstance($class,$arg1,$arg2,……)
类型:string
包含命名空间的类名
可传递任意多个参数
运行下面例子需要先安装Http库:
composer require jaeger/http
<?php
require 'vendor/autoload.php';
use QL\QueryList;
$http = QueryList::getInstance(QL\Ext\Lib\Http::class);
$html = $http->get('http://www.baidu.com');
print_r($html);
相关视频
科技资讯
24小时阅读榜
1
2
3
4
5
6
7
8
9
10
精品课程
共5课时 | 17.4万人学习
共49课时 | 78.2万人学习
共29课时 | 62.5万人学习
共25课时 | 39.8万人学习
共43课时 | 73.8万人学习