写一个函数isPhoneNum(str),判断用户输入的是不是手机号。
function isPhoneNum(str){ return /^1[34578]\d{9}$/g.test(str)}console.log(isPhoneNum(13754879652))//trueconsole.log(isPhoneNum(1648954875))//false
感觉文章思路挺清晰的~
分析一下,小程序为什么不能分享朋友圈?
请你谈谈Cookie的弊端
什么是 Cookie?它的作用是什么?
怎么理解产品经理与技术研发之间的关系?
感觉文章思路挺清晰的~