`
- 浏览:
51426 次
- 性别:
- 来自:
深圳
-
deal with href remove the same element
var url="http://zhidao.baidu.com/question/193641504.html?name=tom&age=28";
function getName(url, name){
var firstarr = url.split("?");
var secarr = firstarr[1].split("&");
var thirdarr = [];
for(var i=0; i<secarr.length; i++){
thirdarr[i] = secarr[i].split("=");
}
for(var j=0; j<thirdarr.length; j++){
if(thirdarr[j][0]==name){
return thirdarr[j][1];
}
}
return false;
}
//var myvalue = getName(url,"name");
//document.write(myvalue);
var duplicatedarr = [1,2,3,"a","b","e","a",7,8,3,"s","b","e","d",4,7,3];
function removeduplicateitem(arr){
for(var i=0; i<arr.length; i++){
for(var j=i+1; j<arr.length;j++){
if(arr[i]==arr[j]){
//delete arr[j];
arr.splice(j,1);
}
}
}
return arr;
}
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
HDR Deghosting: How to deal with Saturation, http://www.cs.duke.edu/~junhu/CVPR2013/
This driver doesn t deal with the exact protocol used during the session. It is intended to be as simple as something like.
The Level 1 Specification was designed to deal with the following PHY layer interfaces : 1. 2. 3. 4. 5. 155.52 Mbps (SONET/OC-3c) 155.52 Mbps (8B/10B block coded) 100 Mbps (4B/5B TAXI) 44.1236 Mbps ...
高中英语 知识点大全41 deal with do with的区别
How do we deal with our problemsPPT教案.pptx
摸底考试作文垃圾处理how to deal with garbagePPT课件.pptx
摸底考试作文垃圾处理how to deal with garbagePPT学习教案.pptx
asterminding the Deal: Breakthroughs in M&A strategy and analysis presents a tough-minded and systematically analytical examination of the criteria, methods and causal factors relating to acquisition ...
With this book, you will learn how to deal with many tasks such as zipping files, emailing colleagues, and deploying your work at the press of a button. The book is structured into two parts: The ...
散点图# s:散点的大小# c:散点的颜色Set the title and labelspandas自定义格式画散点图。
With this book, you will learn how to deal with many tasks such as zipping files, emailing colleagues, and deploying your work at the press of a button. The book is structured into two parts: The ...
With Windows 7 Annoyances, you’ll learn how to deal with a wide range of nagging problems before they deal with you. Annoyances.org founder David Karp offers you the tools to fix all sorts of ...
Get the best tips to deal with performance issues related to your quadcopter Book Description Quadcopters, also known as quadrotors, are gaining more and more popularity in today's world. With the ...
Learning Laravel's Eloquent starts off by taking you through setting up your first ... The book concludes by walking you through how to deal with complex problems and build advanced and flexible systems.
Improve performance of your applications with the new HTTP 2.0 standards. You’ll learn techniques to deal with security in Spring and discover how to implement unit and integration test strategies....
Through full engagement with the sort of real-world problems data-wranglers face, you'll learn to apply machine learning methods to deal with common tasks, including classification, prediction, ...
The main focus of the book is the practical application of bioinformatics, but we also cover modern programming techniques and frameworks to deal with the ever increasing deluge of bioinformatics ...
The principal problems with the existing decision theories are that they do not have capability to deal with situations in which probabilities and events are imprecise. In this book, we describe a ...
Increase your testing efficiency with on-the-fly generated stand-in components and deal with the particularities of exceptional flow Employ runners to adjust to specific test demands Use rules to ...
ink_the_deal