js 中用 location.pathname 获取项目名
来源:互联网 发布:网络信息安全管理办法 编辑:程序博客网 时间:2024/06/05 03:21
var getContextPath="/"+location.pathname.split("/")[1];$.ajax({url : getContextPath+"/exchangeRate/selectByCode.shtml",type : "post",data: {code: $('#code').val()},async : false,dataType:'json',success : function(data) {if(data != null){valid = false;}}});
0 0
- js 中用 location.pathname 获取项目名
- JS获取项目名
- js中的location的href和pathname,search
- javascript 中的location.pathname
- javascript 中的location.pathname
- javascript 中的location.pathname
- JS获取当前项目名
- JS获取当前网址 项目名 主机
- js ,jsp获取项目应用名
- location.href/location.search/location.pathname区别及用法
- location.href/location.search/location.pathname区别及用法
- struts2项目中用Js获取URL地址参数
- js实现在HTML页面获取项目名路径
- js中用参数传递方法名
- jsp获取项目名
- 获取项目路径名
- contextPath获取项目名
- JavaScript获取项目名
- 语音芯片选型
- 傅里叶分析
- log4j
- 第十八章 B树
- java中String为什么是不可变的
- js 中用 location.pathname 获取项目名
- 移动护理中病人显示的内容
- 打开本地相册,获取照片
- 点击百度地图上任意一点,显示该点的经纬度的信息窗
- Longest Palindromic Substring
- iOS中如何在欢迎界面中动态加载广告
- IOIO DeOdexer支持棒棒糖和棉花糖v1.1
- diy数据库(七)--线程控制块、消息、线程池
- 解决VC++6.0 error C2065: 'ODS_HOTLIGHT' : undeclared identifier问题