後臺 -- tp彈框(利用js)

彈框 + 跳轉頁面

在頭部引用一下

use think\Request;

        echo("<script>window.alert('恭喜你抽中了---'+'$specific')</script>");
        $request = Request::instance();
        $URL_MI = $request->domain();
        $URL_MI = $URL_MI . "/index/index/index";
        echo("<script>window.location= '$URL_MI'</script>");

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章