1 Star 0 Fork 199

GoTeam / starrtc-web

forked from starRTC / starrtc-web 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
cookie_tools.js 679 Bytes
一键复制 编辑 原始数据 按行查看 历史
elesos.com 提交于 2018-09-14 19:17 . init
function getCookie(c_name)
{
if (document.cookie.length>0)
{
c_start=document.cookie.indexOf(c_name + "=")
if (c_start!=-1)
{
c_start=c_start + c_name.length+1
c_end=document.cookie.indexOf(";",c_start)
if (c_end==-1) c_end=document.cookie.length
return unescape(document.cookie.substring(c_start,c_end))
}
}
return ""
}
function setCookie(c_name,value,expiredays)
{
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : "; expires="+exdate.toGMTString())
}
JavaScript
1
https://gitee.com/cloudgoon/starrtc-web.git
git@gitee.com:cloudgoon/starrtc-web.git
cloudgoon
starrtc-web
starrtc-web
master

搜索帮助