题解 | #搜索数字#
搜索数字
https://www.nowcoder.com/practice/f7df2b13dce44b7498a13c1df1652779
function _search(string) {
// 补全代码
string.split(",")//以","分隔字符串形成数组
for(var i =0;i<string.length;i++){//循环遍历数组
if(typeof(string[i]==='number')){//判断数组中的元素类型是否属于数字类型
return true
}
return false
}
}
深信服公司福利 824人发布
