JS文件中获取路径

来源:互联网 发布:主机mac地址怎么查 编辑:程序博客网 时间:2024/05/16 04:57

问题原因

#JSP中Js方法移植Js文件中,<%=path%> 不能使用.

解决方案

var path = location[0]+'//'+location[2]+'/'+location[3];var uri=path+"/dataWrite/dataWrite_delitePlan.action";
0 0
原创粉丝点击