ASP

ASP,JSP,PHP,JS等语法区别

[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

分类: ASP

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

相关文章

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部