用js獲取瀏覽器的url,然后如何把這個url傳給php
4 回答

HUX布斯
TA貢獻1876條經(jīng)驗 獲得超6個贊
myclass.php
1 2 3 4 5 6 7 8 9 10 11 | <?php class test{ public function abc(){ echo "this is the function of abc"; } }
//實例化 $mytest=new test(); //執(zhí)行方法 $mytest->test(); |
當(dāng)你瀏覽器輸入這個網(wǎng)站的路徑+myclass.php的時候,頁面就會顯示
this is the function of abc
添加回答
舉報
0/150
提交
取消