向getVerify.php傳參的問題
onclick="document.getElementById('verifyImage').src='getVerify.php?r='+Math.random() 這串代碼,傳參里面的 ?r= + Math.random(); ?這個r怎么來的?并且 getVerify.php頁面并沒有接受這個參數(shù)啊,還有Math.random()返回的是0~1之間的數(shù)字,但是類型中就只有1,2,3,4四種類型的驗證碼啊....這點好暈啊
onclick="document.getElementById('verifyImage').src='getVerify.php?r='+Math.random() 這串代碼,傳參里面的 ?r= + Math.random(); ?這個r怎么來的?并且 getVerify.php頁面并沒有接受這個參數(shù)啊,還有Math.random()返回的是0~1之間的數(shù)字,但是類型中就只有1,2,3,4四種類型的驗證碼啊....這點好暈啊
2017-01-06
舉報
2017-01-08
不就是單純得訪問了'getVerify.php?r='+Math.random() 只是為了刷新吧講道理不加應(yīng)該沒事吧沒有試過?
4種類型的驗證碼 你假如想要用get的話
getVerify.php?r='+Math.floor(Math.random()*(max-min+1)+min);
getVerify('字體路徑',$type=$_Get['r']);
這節(jié)練習(xí)沒做代碼可能有錯誤 你就看看吧?