Welcome to Qi-U Community for programmer and developer-Open, Learning and Share

Categories

0 votes
233 views
in Technique[技术] by (31.9m points)

金数据问卷内的手机号码验证是如何实现的?

如题,本来想看下里面的具体实现代码,结果调试起来异常麻烦(很卡)。然后在脚本里也没找到对应的提示文本,fiddler抓包也没找到对应的内容。

测试页:https://jinshuju.net/f/sQqLzJ

---- udpate

顺着已采纳答案里的正则表达式,找到了具体代码的出处,即google的libphonenumber


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (31.9m points)
  1. 首先根据文案查询 该手机号码格式无法识别,无相关结果,

    1. 考虑是不是 unicode 编码 u8be5u624bu673au53f7u7801u683cu5f0fu65e0u6cd5u8bc6u522b ,果然找到了然后得到关键词 mobile_invalid
  2. 搜索关键词 mobile_invalid,找到 validations
  3. 搜索关键词 validations,看上去上面就是实现代码,可以断点调试一下
    image.png

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Qi-U Community for programmer and developer-Open, Learning and Share
...