src/util/cache/cookie.js
function(_name){
            var _cookie = document.cookie,
                _search = '\\b'+_name+'=',
                _index1 = _cookie.search(_search);
            if (_index1<0) return '';
            _index1 += _search.length-2;
            var _index2 = _cookie.indexOf(';',_index1);
            if (_index2<0) _index2 = _cookie.length;
            return _cookie.substring(_index1,_index2)||'';
        }
function(_name){
            var _cookie = document.cookie,
                _search = '\\b'+_name+'=',
                _index1 = _cookie.search(_search);
            if (_index1<0) return '';
            _index1 += _search.length-2;
            var _index2 = _cookie.indexOf(';',_index1);
            if (_index2<0) _index2 = _cookie.length;
            return _cookie.substring(_index1,_index2)||'';
        }
function ( _name ) { var _cookie = document . cookie , _search = '\\b' + _name + '=' , _index1 = _cookie . search ( _search ) ; if ( _index1 < 0 ) return '' ; _index1 += _search . length - 2 ; var _index2 = _cookie . indexOf ( ';' , _index1 ) ; if ( _index2 < 0 ) _index2 = _cookie . length ; return _cookie . substring ( _index1 , _index2 ) || '' ; }
milliseconds of one day
milliseconds of one day