摘要:string[] array = { "A","B","C","D","H"}; var index=array.ToList().IndexOf("D"); 使用IndexOf()方法,返回数组元素在数组中的索引。 index=3;
阅读全文
随笔分类 - JS 小实例工具
摘要:string[] array = { "A","B","C","D","H"}; var index=array.ToList().IndexOf("D"); 使用IndexOf()方法,返回数组元素在数组中的索引。 index=3;
阅读全文
摘要:使用方法: 在datagrid的事件onLoadSuccess中添加
阅读全文
posted @ 2016-08-24 11:26
摘要:一、先来看一个简单的例子: 下面以三个页面分别命名为frame.html、top.html、bottom.html为例来具体说明如何做。 frame.html 由上(top.html)下(bottom.html)两个页面组成,代码如下: 代码如下: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> frame </TITLE> </HEAD> <frameset rows=&qu
阅读全文
摘要:function getElementsByClassName(n) { var classElements = [],allElements = document.getElementsByTagName('*'); for (var i=0; i< allElements.length; i++ ) { if (allElements[i].className == n ) { classElements[classElements.length] = allElements[i]; } } return classElements; }var redClassEle
阅读全文
摘要:1、 string url = Request.Url.ToString(); string url = " http://localhost:8080/Customer/index?token=ghfghfghfghfgh&mediaUserID=120122&redirect_url=www.wwwghgh.com"; var getUrl = HttpGet.HttpGets(url); string[] parm = url.Split('&'); string token = parm[0].Split('='
阅读全文
posted @ 2012-10-24 18:49
|