您现在的位置是:首页 > 电脑技术查询 > web开发

脚本的url属性读取,该如何处理

编辑:chaxungu时间:2022-10-02 23:18:41分类:web开发

脚本的url属性读取
a.jsp

location= 'b.jsp ';

b.jsp
怎么能知道是从a.jsp转入的?
就是找个一个属性,其值是a.jsp

------解决方案--------------------
if(document.referer)this.location=document.referer