文章詳情頁
ASP 信息提示函數并作返回或者轉向
瀏覽:398日期:2022-06-05 09:13:24
有時候我們在寫asp的時候需要給用戶一些反饋信息,這個自定義的返回信息函數,很方便大家使用
"************************ "子程序名:信息提示窗口 "功能:信息提示,并作返回或者轉向 "參數: "str 提示字符串 "stype 處理類型:Back 返回 GoUrl 轉向 Close 關閉 "url 轉向方向 "************************ Sub MsgBox(str,stype,url) response.write "<script language=javascript>" response.write "alert(""&str&"");" select case stype case "Back" response.write "history.go(-1);" case "GoUrl" response.write "window.location=""&url&""" case "Close" response.write "window.close()" end select response.write "</script>" End Sub
具體的使用方法就不說了,很簡單
標簽:
ASP
相關文章:
1. ASP常用日期格式化函數 FormatDate()2. asp批量添加修改刪除操作示例代碼3. ASP.NET MVC遍歷驗證ModelState的錯誤信息4. ASP實現加法驗證碼5. ASP基礎入門第四篇(腳本變量、函數、過程和條件語句)6. 使用EF Code First搭建簡易ASP.NET MVC網站并允許數據庫遷移7. asp知識整理筆記4(問答模式)8. asp(vbs)Rs.Open和Conn.Execute的詳解和區別及&H0001的說明9. ASP中實現字符部位類似.NET里String對象的PadLeft和PadRight函數10. asp中response.write("中文")或者js中文亂碼問題
排行榜
