vbscriptとjavascriptは認証コードを書きます.
1183 ワード
vbscript javascript
, ,
<script language="vbscript">
window.name="code"
Function vCode()
Dim A(5)
Randomize
For i=1 To 5
A(i-1)= Int (10 * Rnd)
document.write A(i-1)
next
End Function
vCode
</script>
<script language="javascript">
function vvCode(k){
eval(A=new Array(k))
for(i=0;i<k;i++){
A[i]=parseInt(Math.random()*10)
document.write(A[i])
}
}
vvCode(5)
//javascript eval ,
</script>
vbscript Rnd javascript Math.random 0 1 (0.xxxx)
10, (x.xxxx) ,
javascript , , ,
N=Number(Math.random()*10)
S=N.toString()
N=Number(S.substring(0,1))
... ... parseInt , , :(