javascript获取cookie

admin4年前前端技术1199
//获取cookie
function getcooki(name) {
var name=name+"=";
var mine=document.cookie.split(';');
var c=mine[0].trim();
var last=c.substring(name.length,c.length);
return last 
}


相关文章

ubbedit实现遍历绝对目录绑定cookie查询以前上传的图片

ubbedit实现遍历绝对目录绑定cookie查询以前上传的图片

设置cookie ,$user_id=$_COOKIE["user_email"];设置path   , $path =  "/"...

ios 手机端 input 框上方有内阴影

解决方案1:<!--如果 ui 样式里有边框,可以用外层盒子设置边框-->input{     border:none; }...

H5页面移动端双击屏幕禁止页面放大

在meta标签中加入user-scalable=no属性...

关于css的position参数自我领悟心得整理

relative :相对与最近的DOM定位   absolute :相对里面的绝对定位,跟relative 一起用,起到随心所欲定位的效果sticky :滚顶地位定位,用与鼠标滚动...

Navigate down the menu through jquery development

The core knowledge is to use jquery's hover method to achieve, The animation effe...

让TD 与div自动换行的css方法

word-wrap: break-word;  word-break: break-all; white-space: normal;...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。