Javascript | 马犇-技术博客
  • JavaScript操作cookie

    原创, 网页设计 超过1,570 views围观 0条评论
    function set_cookie(key,val){ if(!key || !val) return false; document.cookie = key+"="+val; return true; } function get_cookie(key){ var strCookie = document.cookie; var arrCookie=strCookie.split("; "); for(var i=0;i<arrCookie.length;i++){ v...
    来源:本站原创 标签:
  • javascript js 写的显示时间的小插件

    PHP, 网页设计 超过4,177 views围观 0条评论
    function RunGLNL(){ var today=new Date(); var d=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六"); var DDDD=(today.getYear() 0){ return ResultMonth * 100 + ResultDay;} else{return ResultMonth * 100 - ResultDay;} } function CnYearofDate(DateGL){ var YYYY=Dat...
    来源:本站原创 标签: