Math.random().toString().replace(".", "");// 生成唯一的id
js生成唯一的id
原文:https://www.cnblogs.com/ilimengyang/p/8986615.html