文章詳情頁
ASP 信息提示函數(shù)并作返回或者轉(zhuǎn)向
瀏覽:362日期:2022-06-05 09:13:24
有時候我們在寫asp的時候需要給用戶一些反饋信息,這個自定義的返回信息函數(shù),很方便大家使用
"************************ "子程序名:信息提示窗口 "功能:信息提示,并作返回或者轉(zhuǎn)向 "參數(shù): "str 提示字符串 "stype 處理類型:Back 返回 GoUrl 轉(zhuǎn)向 Close 關(guān)閉 "url 轉(zhuǎn)向方向 "************************ 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
具體的使用方法就不說了,很簡單
標(biāo)簽:
ASP
相關(guān)文章:
1. ASP和PHP文件操作速度的對比2. asp讀取xml文件和記數(shù)3. ASP.NET MVC使用jQuery的Load方法加載靜態(tài)頁面及注意事項4. ASP常用日期格式化函數(shù) FormatDate()5. asp.net core項目授權(quán)流程詳解6. ASP基礎(chǔ)入門第八篇(ASP內(nèi)建對象Application和Session)7. ASP.NET MVC使用Session會話保持表單狀態(tài)8. asp中response.write("中文")或者js中文亂碼問題9. ASP中實現(xiàn)字符部位類似.NET里String對象的PadLeft和PadRight函數(shù)10. asp知識整理筆記4(問答模式)
排行榜