思路与文件上传相同,只是验证码一个方法: <img src="{:captcha_src()}" /> 后台文件:app\ceshi\yam <?php namespace app\ceshi\controller; use think\Controller; use think\Db; class Yzm extends Controller{ public function index() { return $this->fetch(); } public
$(".shop-list1").find("li").each(function(){ var href=$(this).attr("hrefs"); var hd1 = window.location.pathname; var hd2 = window.location.search; var href1=hd1+hd2; va