- 如何解决从A页面自动跳转B页面,并且用户点击返回按钮回到A页面?
<!-- test.html --> <!doctype html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="UTF-8" /> <title>test</title> </head> <body id="body"> <h2 id="demo"></h2> </body> <script> var body = document.getElementById("demo"); if (location.href.indexOf("jump") != -1) { body.innerHTML = "A: 主页面\n预期从这个页面自动跳转到B页面"; setTimeout(() => { location.href = "/test.html"; }, 2000); } else { body.innerHTML = "B: 二级页面\n预期点击返回,回到A页面"; } </script> </html> 把代码写入 test.html用 static-server 等工具启动http服务打开 http://localhost:3000/test.html?jump=1预期会从A页面自动跳转B页面,B页面点击返回能返回A页面实际:iOS符合预期,安卓直接关闭了webview
06-14 - 发票详情获取校验码为空
https://api.weixin.qq.com/card/invoice/reimburse/getinvoiceinfo?access_token={access_token}[图片] 返回没有报错,但是checkCode没有值
2022-06-13