推薦:解析asp中緩存cache技術的應用ASP從發布至今已經7年了,使用ASP技術已經相當成熟,自從微軟推出了ASP.NET之後就逐漸停止了對ASP版本的更新。但是由於有很多人仍然習慣使用ASP來開發網站,所以,再次我將以一個簡單的例
看下面的Java代碼,目的是為了當i是3的時候,就不做輸出,直接跳到下一個循環。
| 以下為引用的內容: int i = 0; while (i < 5) ...{ i ; if (i == 3) ...{ continue; } System.out.println(I'm not 3, I'm i); // Do something else... } |
然而在ASP (VB) 應該怎麼寫呢?不少人就犯難了。在此,我給出些答案供參考,還往多多指教!
| 以下為引用的內容: i = 0 Do While (i < 5) If (i <> 3) Then 'MsgBox I'm not 3, I'm & i 'Do something else... End If i = i 1 Loop |
顯然,上面的例子會貽笑大方。
| 以下為引用的內容: i = 0 Do While (i < 5) For j = 1 To 1 If (i = 3) Then Exit For End If 'MsgBox I'm not 3, I'm & i 'Do something else... Next j i = i 1 Loop |
分享:淺析asp無組件上傳並插入到數據庫裡以下為引用的內容: % Response.Buffer = True Server.ScriptTimeOut=9999999 On Error Resume Next %>