首页 | DV动态 | 数码产品 | 视频采编 | 网站建设 |
【收藏DV】
  最近3月排行
·一文看懂:无线蓝牙耳机、TWS耳机到底有何区别,以及蓝牙LE Audio技术等概念【关于标准的思考】
·DDL “deadline”
·详解联想小新Pro16和小新Pro16GT版区别
一个在vbscript中读取cookie的程序函数
2006/4/20 17:38:21
 
超级小便携式笔记本充电器,两个type-c和一个USB接口,同时可以手机充电。 【3C认证】苹果超薄Magsafe磁吸充电宝快充外接迷你5000毫安移动电源适用于iPhone16可上飞机


一个在vbscript中读取cookie的程序函数

function cookievalue(pcook)
lhowlong=len(pcook)
lwhereis=instr(document.cookie,pcook)
if lwhereis=0 then
cookievalue=false
else
lstartpos=len(document.cookie)-lwhereis-lhowlong
lstartstring=right(document.cookie,lstartpos)
do
lchar=left(lstartstring,1)
if lchar=";" then
cookievalue=lendstring
exit do
else
lendstring=lendstring & lchar
if len(lstartstring)=1 then
cookievalue=lendstring
exit do
else
lstartstring=right(lstartstring,len(lstartstring)-1)
end if
end if
loop
end if
end function (DVOL本文转自:中国DV传媒 http://www.dvol.cn)

 

  上一篇:妙用VBScript自制IE工具栏按钮
  下一篇:vbscript错误代码及对应解释大全
      更多...
::打印本页 ::      ::关闭窗口::


版权所有© 数码在线网站 DV OnLine©  鲁ICP备12016322号-1