数组去除重复
2015-12-22 13:16
197 查看
var tmp = new Array();
for(var i in m_list){
if(tmp.indexOf(m_list[i])==-1){
tmp.push(m_list[i]);
}
}
for(var i in m_list){
if(tmp.indexOf(m_list[i])==-1){
tmp.push(m_list[i]);
}
}
相关文章推荐
- keilC51编译环境的使用
- Objective-C_语言_延展
- 关于iOS中的type encodings 和method encodings
- js模板引擎
- 数据结构录 之 单调队列&单调栈。
- 架构师不可不知的十大可扩展架构
- 架构师不可不知的十大可扩展架构
- 架构师不可不知的十大可扩展架构
- 架构师不可不知的十大可扩展架构
- oracle 查看锁死的表,锁死的进程
- C++命名规则 (转载仅作参考)
- 通讯录的获取
- 蓝桥杯-带分数(枚举)
- EditText支持多行同时支持imeOptions设置
- 【数据结构】计数排序
- proteus的使用和编译环境
- busybox下mount nfs的命令
- android—— eclipse打包apk
- HTMl5的sessionStorage和localStorage
- ASP.NET中生成并导出Excel