JavaScript雪花算法生成ID的方法

方法

- ----------- - -----
	- ------------- - --- ---------
	- ---- -- ---
		- ---- -
			- ----- - ------
			- --- - ----- - ---
			---- -
				------- - ---- -
					--
				-
			-
		-
		- ------------ - --- ---------
		------------------ - -------------------
			-----
			------------ - --- ---------
		-
		------------- - -------------
		- -------------- - -----
		- ---------- - ------------ - ---------------
		- -------------- - ---------- - -----
		- -------- - -------- - ---
		- ---------- - ---------- - ---
		- ------- - -------------- - -------- - ---------- - -------
		- ------------
	-
-----

使用

-------.log(snowFlakeFn(1,2,12)) // 42757450323075084