简单教程
提交运行
代码编辑器:
@Code Dim members as String()={"Jani","Hege","Kai","Jim"} i=Array.IndexOf(members,"Kai")+1 len=members.Length x=members(2-1) End Code <!DOCTYPE html> <meta charset="utf-8"/> <h3>Members</h3> @For Each person In members @<p>@person</p> Next person <p>The number of names in Members are @len</p> <p>The person at position 2 is @x</p> <p>Kai is now in position @i</p>
运行结果: