learn one regexp sentence

 

var val = "http://www.uab.net/MusicAlbum.html?bid=122&w=1&catId=115"; var tempval = val.replace(/&w=1/, ""); alert(tempval); 

 

你可能感兴趣的:(learn one regexp sentence)