摘要: var str="36,35,26,41,42,36,36,35,41,25,26,";var ret = [];var re = str.split(',');str.replace(/[^,]+/g, function($0, $1) { (str.indexOf($0) == $1) && ret.push($0)})alert(ret) 阅读全文
posted @ 2011-05-19 15:35 HTL 阅读(2590) 评论(1) 推荐(0) 编辑
htl