这段代码不会跳转是因为它只是定义了一个匿名函数,并没有被调用或执行。要实现跳转功能,需要在代码中调用该函数,例如:

(function() {
  return 0;
})();
window.location.href = "https://m.jianyinet.com/index.html";

这样就会先执行匿名函数并返回0,然后跳转到指定的URL。

return 0uaredirecthttpsmjianyinetcomindexhtml;这代码为什么不跳转

原文地址: https://www.cveoy.top/t/topic/h9AF 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录