需要准备2个类 [效仿微擎Ihttp请求方法](效仿微擎Ihttp请求方法.md) [效仿微擎File方法](效仿微擎File方法.md) 实现方法 ~~~ $imgUrl="http://p9.pstatp.com/large/pgc-image/1528195330859d2ea3d329a"; $imgUrl = htmlspecialchars($imgUrl); $imgUrl = str_replace("&","&",$imgUrl); $f=new Jqfile(); $f->file_remote_attach_fetch($imgUrl); ~~~