var str=document.getElementById('demo1').innerHTML;
//alert(str.substring(0,2));
//alert(str.substring(str.indexOf("@"),str.length));
//var rg = /#/g;
//str = str.replace(rg,"");
//gr = /|/g;
//str = str.replace(rg,"");
//rg = ;
//str = str.replace(rg,"");
demo1.innerHTML = str.substring(2,str.indexOf("@"));
阅读(897) | 评论(0) | 转发(0) |