location.search在客户端获取Url参数的方法
利用
2008-04-17 17:38
location.search是从当前URL的?号开始的字符串
如:http://www.baidu.com/s?wd=baidu&cl=3 它的search就是?wd=baidu&cl=3 伊图教程网[www.etoow.com] http://www.etoow.com/html/2007-08/1187239633.html 如: location.search.substr(1).split("&")[0]
// #### URLParams: holds all URL passed parameters (like ?Param1=Value1&Param2=Value2) (function() FCKURLParams[ sParamName ] = sParamValue ; |