[color=Red]JS=================[/color]
数组
var adv = new Array();
adv[0]=”172460″
随机数
Math.floor(Math.random() * adv.length);
输出
document.write(“”)
substr()函数可以取得字符串的指定长度子字符串
strObj.substr(3)
返回 String 对象内第一次出现子字符串的字符位置
strObj.indexOf(“str”)
function xx(){
return x;
}
for(i=1;i<10;i++)这里面不能用int i=1;
[color=Red]ASP===============[/color]
分割 split("",",") 数组大小 Ubound() 数组调用 img(i)
输出 response.write
范例:
s = split(ss,",")
for i=0 to UBound(s)
response.write s(i)
next
if() then
elseif then
else
end if
Select Case ()
case
case 0
case 0 to 9
end select
[color=Red]PHP=================[/color]
[color=Red]JSP=================[/color]
输出 System.out.println(); out.println();
s = ss.split(",")
for(int i=0;i