const url = "http://xxx.xxx.xxx"
if (indexOf('http') === 0) {
consloe.log('yes');
} else if(indexOf('http') === -1){
consloe.log('no');
}
const url = "http://xxx.xxx.xxx"
if (indexOf('http') === 0) {
consloe.log('yes');
} else if(indexOf('http') === -1){
consloe.log('no');
}