javascript - 如何在 JavaScript 中将用户重定向到考试页面?
问题描述
使用 JS .. 注册表单,然后在验证后进入登录表单,然后在验证后将重定向到测验页面。有人知道怎么做吗?
解决方案
您可以使用以下代码在验证后重定向到不同的页面
window.location.replace("http://sample.com/nexpage");
推荐阅读
- python - 将星期六和星期日更改为星期五
- python - 如何在“x”个字符后从带有列分隔符的 txt 文件创建 csv 文件
- node.js - 使用 https 请求连接到 websocket
- gtsummary - 合并具有不同变量名但相同标签的 tbl_svysummary 和堆叠的 tbl_regression 表
- mongodb - Pymongo - 根据嵌套对象中的时间戳查找文档
- reactjs - React Hooks:useEffect、useReducer、createContext 和 localStorage;TypeError:无法读取未定义的属性
- ios - SwiftUI - 从 SwiftUI 呈现 ViewController/TableViewController
- python - 如何将文本文件的内容映射到数据框中的列?
- machine-learning - keras中的顺序模型测试
- express - 使用 Nuxt.js 身份验证模块保护 Express API 路由