var str=ProductDetail_Id;//要处理的字符串“1234,3333,2222,555,”这种
str=(str.substring(str.length-1)==',')?str.substring(0,str.length-1):str;
转载于:https://www.cnblogs.com/stjwy/p/5970387.html
var str=ProductDetail_Id;//要处理的字符串“1234,3333,2222,555,”这种
str=(str.substring(str.length-1)==',')?str.substring(0,str.length-1):str;
转载于:https://www.cnblogs.com/stjwy/p/5970387.html