摘要:
阅读全文
摘要:
var str='http://www.baidu.com'; if(str.startsWith('http://www')){ // 以什么开头 alert('是网址') } if(str.endsWith('.com')){ alert('是com网址') } 阅读全文
摘要:
function show(a,b,...args){ console.log(a) console.log(b) console.log(args) } show(10,20,30,30,36) 阅读全文