获取URL参数的值
来源:互联网 发布:甲方软件需求 编辑:程序博客网 时间:2024/05/22 12:45
ORYX.Utils = {
/**
* General helper method for parsing a param out of current location url
* @example
* // Current url in Browser => "http://oryx.org?param=value"
* ORYX.Utils.getParamFromUrl("param") // => "value"
* @param {Object} name
*/
getParamFromUrl: function(name){
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.href);
if (results == null) {
return null;
}
else {
return results[1];
}
}
}
/**
* General helper method for parsing a param out of current location url
* @example
* // Current url in Browser => "http://oryx.org?param=value"
* ORYX.Utils.getParamFromUrl("param") // => "value"
* @param {Object} name
*/
getParamFromUrl: function(name){
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.href);
if (results == null) {
return null;
}
else {
return results[1];
}
}
}
- 获取URL参数的值
- 获取url 的参数值
- jquery获取Url和JS获取Url的参数值
- 获取URL参数值
- 获取url参数值
- js获取当前url的参数值
- javascript获取url指定参数的值
- js 获取url参数的值
- jquery获取url参数值的方法
- js获取当前url的参数值
- js获取URL后的参数值
- 获取URL中指定参数的值
- 获取URL的指定参数对应值
- jquery 获取url中参数的值
- 获取url中传递的参数值
- 获取url上某个参数的值
- js获取url中的参数的值
- 获取URL的指定参数对应值
- 对话框风格引起的问题
- 设计首页经验谈
- 十大测试工具
- 勾起创意的线索
- java设计模式之工厂模式
- 获取URL参数的值
- QT内置的ICON资源
- Linux && Unix问题集锦 ,不断更新!
- Export Signed Android Wizard. Create Key
- POJ1789 Truck History(最小生成树)
- 决胜移动互联网 网址导航迎来新曙光
- 系统架构师谈企业应用架构之系统设计规范与原则1
- VC:使新的类支持串行化
- 阴阳日历转换 公历日期转农历 八字排日柱算法