在ASP開發過程中,我們都會根據錯誤提示查找錯誤,然后進行相應的修改,直到沒有錯誤為止,下面是錯新技術頻道小編帶給大家的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 信息提示函數并作返回或者轉向,我們都了解了具體的操作方法,我們最后的目的都是希望能學習到我們想要的知識,希望大家能一如既往的支持錯新技術頻道。
新聞熱點
疑難解答