NetBlog主题

JS定时跳转
Jquery/框架/插件

JS定时跳转

674 0

<script type="text/javascript"> window.onload = function () {setInterval(function () {document.getElementById(txt1).value++;if (document.getElementById(txt1).value == 10) {location.href = http://www.luofenming.com;}},1000)}</script>//…

.net core实现404错误跳转指定页
.Net Core

.net core实现404错误跳转指定页

417 0

如果输入的地址不存在或者原因地址被删除等问题,我们可以用下面方法实现跳转到指定的页面,在这里我是跳转到了首页代码如下 public class Jump404Middleware {private readonly RequestDelegate next;public Jump404Middleware(RequestDelegate next){this.next = next;}publ…