有誰知道有利用該選項的理由:CreateObject和Wscript.CreateObject有什麼不同?
Wscript.CreateObject("some.object")
和
CreateObject("some.object")
在VBScript
?當我找到使用Wscript.CreateObject
的文檔或示例時,我通常使用CreateObject
進行重寫,因爲它似乎總能工作,然後我可以輕鬆地在HTA或ASP中重用該代碼。但是我總是想知道爲什麼這個特性存在,以及如果在VBScript中使用這種或那種方式會產生什麼差別。
你手邊有一個完整的代碼示例? – krlmlr 2013-05-24 19:30:39