code: public static int jsHash(String str) {
  		int hash = 1315423911;
  
  		for (int i = 0; i < str.length(); i++) {
  			hash ^= ((hash << 5) + str.charAt(i) + (hash >> 2));
  		}
  
  		return hash & 0x7FFFFFFF;
  	}
docs: JS算法
  
  @param str 字符串
  @return hash值