//a变量你就自己获取御局,我这儿为你方便你理解我就清迟直接写上了镇正让var a = 'Ajjfioewjfoieji';if(!(/^[A-Z][A-z0-9]*$/).test(a)){ alert('请首字母大写'); }
//check capital wordvar arg0=/^(\w[A-Z]{1}\销扮早w*\s?)*$/亏雀缺铅g;console.log(arg0.test(code));