Is it possible to validate IMEI Number?

后端 未结 5 922
时光取名叫无心
时光取名叫无心 2021-02-09 09:40

For a mobile shop application, I need to validate an IMEI number. I know how to validate based on input length, but is their any other mechanism for validating the input number?

5条回答
  •  悲哀的现实
    2021-02-09 10:02

    I think this logic is not right because this working only for the specific IMEI no - 490154203237518 not for other IMEI no ...I implement the code also...

    var number = 490154203237518;
    var array1 = new Array();
    var array2 = new Array();
    var specialno = 0 ;
    var sum = 0 ;
    var finalsum = 0;
    var cast = number.toString(10).split('');
    var finalnumber = '';
    if(cast.length == 15){
        for(var i=0,n = cast.length; i

提交回复
热议问题