多彩编程 多彩编程MZPH · CODE BLOG
ARTICLE DETAIL

文章详情

深耕前端与后端开发技术的一线实战笔记与踩坑复盘。

IE 中 window.location.href 不能跳转

IE 中 window.location.href 不能跳转 window.location.href在IE下面竟然不跳转这是为什么呢这个是我写的语句function Add() {url PaperSubmitMain.aspx?state0paperid-1;window.location.href url;}后面是网上找到了解决方案要加 这句返回值false 才行 一试 果然好了window.event.returnValue false;function Add() {url PaperSubmitMain.aspx?state0paperid-1;window.location.href url;window.event.returnValue false;}
返回列表