一、获取单个参数:若地址栏URL为:abc.html?id=123function getString(){ var locurl=location.href; var start=locurl.indexOf("?"); var end=locurl.length; var tempstr=loc...
分类:
Web程序 时间:
2014-08-26 11:34:55
阅读次数:
169
eclipse中默认是不能直接打开文件所在的目录的,需要在文件中右键--》properties--》location,复制到资源管理器中才能打开文件所在的目录。这种方法很麻烦。这里介绍一种在eclipse中直接打开文件所在目录的方法。工具/原料eclipse方法/步骤展开如下菜单:Run ---- ...
分类:
系统相关 时间:
2014-08-26 09:42:15
阅读次数:
253
1、Foundation框架-常用结构体NSRange(location length)NSPoint\CGPointNSSize\CGSizeNSRect\CGRect (CGPint CGSize)2、使用这些CGPointEqualToPoint、CGRectContainsPoint等函数的...
分类:
其他好文 时间:
2014-08-25 22:44:05
阅读次数:
321
Pro Android学习笔记:Pro Android学习笔记(一一七):Location(3):获取位置更新 2014.8.25Pro Android学习笔记(一一六):Location(2):LocationManager的位置获取 2014.8.21Pro Android学习笔记(一一五):L...
分类:
移动开发 时间:
2014-08-25 22:28:55
阅读次数:
484
Catch That CowTime Limit:2000MSMemory Limit:65536KTotal Submissions:46715Accepted:14673DescriptionFarmer John has been informed of the location of a f...
分类:
其他好文 时间:
2014-08-25 20:45:14
阅读次数:
241
javascript---location.href/location.search/location.
分类:
编程语言 时间:
2014-08-25 11:43:24
阅读次数:
425
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------NSRange(location length)NSPoint\CGPointNSSize\CGSizeNSRect\CGRect (CGPint CGSize)1、NSRange(location...
分类:
其他好文 时间:
2014-08-24 11:30:32
阅读次数:
296
Question:Given a sorted array of strings which is interspersed with empty strings, write a method to find the location of a given string. 1 package P....
分类:
其他好文 时间:
2014-08-23 15:09:11
阅读次数:
179
location是javascript里边管理地址栏的内置对象,比如location.href就管理页面的url,用location.href=url就可以直接将页面重定向url。而location.hash则可以用来获取或设置页面的标签值。比如http://domain/#admin的locati...
//获取地址栏参数function getQueryStringByName(name) { var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i")); if (result == null ...
分类:
其他好文 时间:
2014-08-23 01:04:49
阅读次数:
210