luckylei66

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

ASP (using vbs)

Function GUID()
    
Dim objTypeLib
    
Set objTypeLib = CreateObject("Scriptlet.TypeLib")
    GUID 
= Left(CStr(objTypeLib.Guid),38)
    
Set objTypeLib = Nothing
End Function

 

ASP (using jscript) 在服务端创建 GUID 的代码如下:

function GUID(){    
    
return new ActiveXObject("Scriptlet.TypeLib").Guid.toString().substring(0,38); 
}

 

posted on 2009-06-26 10:32  Leo.Wang  阅读(214)  评论(0编辑  收藏  举报