javascript获取cookie

admin5年前前端技术1426
//获取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 
}


相关文章

jquery如何获取div里面value的值以及原生写法

jquery写法$(this).attr("value")原生写法var value = document.getElementById(""+id+"...

whatsapp浮动按钮

whatsapp浮动按钮

whatsapp浮动按钮whatsapp.zip...

分享与定时自动跳转

<!DOCTYPE html> <html> <head> <meta charset="utf-8">...

Navigate down the menu through jquery development

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

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

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

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

发表评论    

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