摘要:
有如下代碼,結(jié)果看到了,不過不理解為什么會這樣。 var f = [] for (i = 0; i < 3; i++) { f[i] = function() { alert(i) }; } f[0](); f[1](); f[2](); var ff = [] for (i = 0; i < 3; i++) { (fu... 閱讀全文
摘要:
這里需要注意的就是,如果是在Global.asax中添加計時器,在計時器的處理程序中就不能用Server.MapPath獲得網(wǎng)站根目錄了。 public static string BasePath { get { System.Diagnostics.Process p = System.... 閱讀全文
摘要:
在HttpHandler程序中使用Session時發(fā)現(xiàn),報如題所示的錯誤,Google了一下,實現(xiàn)了IRequiresSessionState接口后解決了。 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public class LogOut ... 閱讀全文
摘要:
下面是使用示例。傳輸方式最好用BINARY,如果用ASCII,會改變文件的編碼格式。 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->ftp = new EnterpriseDT.Net.Ftp.FTPClient(ftpip, ftpport);f... 閱讀全文