static/js/qiniu.js
/**
   * Creates new cookie or removes cookie with negative expiration
   * @param  key       The key or identifier for the store
   * @param  value     Contents of the store
   * @param  exp       Expiration - creation defaults to 30 days
   */
Creates new cookie or removes cookie with negative expiration
@param  key       The key or identifier for the store
@param  value     Contents of the store
@param  exp       Expiration - creation defaults to 30 days
Creates new cookie or removes cookie with negative expiration @param key The key or identifier for the store @param value Contents of the store @param exp Expiration - creation defaults to 30 days
function createCookie(key, value, exp) {
    var date = new Date();
    date.setTime(date.getTime() + (exp * 24 * 60 * 60 * 1000));
    var expires = "; expires=" + date.toGMTString();
    document.cookie = key + "=" + value + expires + "; path=/";
  }
function createCookie ( key , value , exp ) { var date = new Date ( ) ; date . setTime ( date . getTime ( ) + ( exp * 24 * 60 * 60 * 1000 ) ) ; var expires = "; expires=" + date . toGMTString ( ) ; document . cookie = key + "=" + value + expires + "; path=/" ; }
Creates new cookie or removes cookie with negative expiration
 @param  key       The key or identifier for the store
 @param  value     Contents of the store
 @param  exp       Expiration - creation defaults to 30 days
Creates new cookie or removes cookie with negative expiration @param key The key or identifier for the store @param value Contents of the store @param exp Expiration - creation defaults to 30 days