Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
// 这样可以 location.href = './news/details.html?page=activity&id=' + item.id // 这样就不行,为什么? setTimeout(function() { location.href = './news/details.html?page=activity&id=' + item.id }, 600)
我测试过是成功的,你看看你的这个js的代码是不是绑定在一个a标签上,如果绑定在a标签上的话,你加了延迟,代码会优先执行a标签上的链接,所以你看不到定时器里面的跳转效果