摘要:
var word="[hell]还能行吗[world]" var rep=/(\[[a-z]+\])/g; //console.log(word.match(rep)); console.log(word.replace(rep,'')) result: 还能行吗 阅读全文
摘要:
1 function getRgb(x){ 2 var i,arr=[] 3 var getString=x.substring(1) 4 for(i=0;i<3;i++){ 5 arr[i]=parseInt(getString.substring(0,2),16) 6 getString=get 阅读全文