Javascript Last Charter Remove

Web Tech/Javascript 2009.08.25 15:43
script ex:
var str="?id=abcdefg&pw=1234&"
str=str.slice(0,str.length-1);

str result :
?id=abcdefg&pw=1234
posted by ned3y2k