`
tsailer
  • 浏览: 53048 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类

deal with href remove the same element

    博客分类:
  • JS
阅读更多
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;
}
分享到:
评论

相关推荐

    HDR Deghosting: How to deal with Saturation

    HDR(高动态范围)摄影是一种技术,用于在一张图像中捕捉和再现场景的宽广亮度范围,这在现实生活中很常见,但传统相机往往难以捕捉。然而,HDR图像处理过程中可能会遇到一个问题,即“鬼影”现象。...

    高中英语 知识点大全41 deal with do with的区别

    - We don’t know how to deal with the waste materials. (我们不知道如何处理这些废料。) 它还可以表示“涉及”或“论述”的含义,如: - The books dealing with Asian problems sell well in colleges. ...

    The Finite element Method

    - **"The Finite Element Method"**:这一标题直接指出了文章的主题——有限元方法。该方法是一种强大的工具,用于解决结构力学、流体力学以及热传导等领域内的问题。 #### 描述分析 这段描述虽然看起来是乱码,但...

    sctp.rar_Deal With It

    This driver doesn t deal with the exact protocol used during the session. It is intended to be as simple as something like.

    af-phy-0039.000.pdf.zip_Deal With It_sonet

    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 ...

    摸底考试作文垃圾处理how to deal with garbagePPT课件.pptx

    第二段,如果我们以“How to deal with the Garbage”为话题,应从学生的角度出发,提出个人责任和具体解决方案。例如,作为高三学生,我们应当认识到自己在解决垃圾问题上的责任,改掉随手乱丢垃圾的习惯,并推动...

    Automating with Node.js

    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 ...

    szj2ys#deal_with_the_tasks_and_challenges#散点图1

    散点图# s:散点的大小# c:散点的颜色Set the title and labelspandas自定义格式画散点图。

    英文原版-Windows 7 Annoyances 1st Edition

    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 ...

    Building a Quadcopter with Arduino

    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 ...

    Bioinformatics with Python Cookbook(PACKT,2015)

    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 ...

    How do we deal with our problemsPPT教案.pptx

    本文结合"How do we deal with our problemsPPT教案.pptx"中的内容,探讨了在学习英语中遇到的常见问题和对应的解决方案。 首先,发音问题是很多英语学习者的拦路虎。PPT教案建议我们通过大量听力练习来改善发音。...

    Learning Laravel's Eloquent(PACKT,2015)

    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.

    building restful web services with spring 5 2e

    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....

    Decision Theory with Imperfect Information(Wo,2014)

    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 ...

    ink_the_deal

    ink_the_deal

Global site tag (gtag.js) - Google Analytics