js正则 验证 A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y...答:正则表达式如下:^[A-Z](,[A-Z])js示例如下:var a = /^[A-Z](,[A-Z])*$/g;alert(a.test('A,F,C,C,Z'));//true alert(a.test('B,C,'));//false alert(a.test(',X,Z'));//false
js正则 验证 A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y...答:正则表达式如下:^[A-Z](,[A-Z])js示例如下:var a = /^[A-Z](,[A-Z])*$/g;alert(a.test('A,F,C,C,Z'));//true alert(a.test('B,C,'));//false alert(a.test(',X,Z'));//false