static/js/qiniu.js
/**
   * Returns contents of cookie
   * @param  key       The key or identifier for the store
   */
Returns contents of cookie
@param  key       The key or identifier for the store
Returns contents of cookie @param key The key or identifier for the store
function readCookie(key) {
    var nameEQ = key + "=";
    var ca = document.cookie.split(';');
    for (var i = 0, max = ca.length; i < max; i++) {
      var c = ca[i];
      while (c.charAt(0) === ' ') {
        c = c.substring(1, c.length);
      }
      if (c.indexOf(nameEQ) === 0) {
        return c.substring(nameEQ.length, c.length);
      }
    }
    return null;
  }
function readCookie ( key ) { var nameEQ = key + "=" ; var ca = document . cookie . split ( ';' ) ; for ( var i = 0 , max = ca . length ; i < max ; i ++ ) { var c = ca [ i ] ; while ( c . charAt ( 0 ) === ' ' ) { c = c . substring ( 1 , c . length ) ; } if ( c . indexOf ( nameEQ ) === 0 ) { return c . substring ( nameEQ . length , c . length ) ; } } return null ; }
Returns contents of cookie
 @param  key       The key or identifier for the store
Returns contents of cookie @param key The key or identifier for the store