uniqid() in javascript/jquery?

前端 未结 8 1874
孤城傲影
孤城傲影 2021-01-02 09:58

what\'s the equivalent of this function in javascript:

http://php.net/manual/en/function.uniqid.php

Basically I need to generate a random ID that looks like:

8条回答
  •  天命终不由人
    2021-01-02 10:40

    
    
    
    
    
    
    
    
    

    It's a bit convoluted, but you get the gist I'm sure!
    Example: http://jsfiddle.net/Ng4tB/

提交回复
热议问题