<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" ></meta>
<title>WebView测试</title>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js" type="application/javascript"></script>
</head>
<body>
<div>
<h1 align="center">小程序WebView测试</h1>
<div align="center" style="background-color: aquamarine;margin:10px;padding: 10px;width: auto;height: 180px;align-content: center">
<button style="width: 320px;height: 180px;font-size: xx-large" onclick="comeback1()"><h1>原页面</h1></button>
<button style="width: 320px;height: 180px;font-size: xx-large" onclick="comeback2()"><h1>重定向</h1></button>
</div>
</div>
<script th:inline="javascript">
var openId = [[${openId}]];
console.log(openId);
var count = 1;
wx.miniProgram.postMessage({ data: {"openId": openId,"count":count} })
if (openId!=null){
wx.miniProgram.redirectTo({url: '/m2/index'})
}
function comeback1() {
wx.miniProgram.navigateBack()
}
function comeback2() {
wx.miniProgram.redirectTo({url: '/m2/index'})
}
</script>
</body>
</html>

韦恩AI智能体
- 粉丝: 5
最新资源
- chromedriver-linux64-141.0.7367.0(Dev).zip
- 科技平台在服务供给上常面临挑战,如何通过AI+数智应用解决?.docx
- 科技资源供给不足如何解决?如何借助AI+数智应用寻找高招?.docx
- 面对复杂多变的科技创新环境,政府应如何借助AI+数智应用培训提升应对能力?.docx
- 企业科技创新服务如何借助AI+数智应用破解资源匮乏与服务失效的难题?.docx
- 面对经济下行压力,技术转移机构如何利用AI+数智应用实现业务增长?.docx
- 面对科技平台发展挑战,政府可以采纳哪些AI+数智应用策略?.docx
- 面对科技平台可持续性挑战,有哪些创新的AI+数智应用方案?.docx
- 面对科技平台诸多困境,怎样的AI+数智应用方案能破局?.docx
- 面对市场挑战,如何借助AI+数智应用快速构建高效的技术转移产品体系?.docx
- 如何借助AI+数智应用保障科技平台的可持续发展?.docx
- 如何借助AI+数智应用推动技术转移业务升级?.docx
- 如何借助AI+数智应用提升政府科技创新管理的精细化服务?.docx
- 如何借助需求导向的AI+数智应用技转服务实现科技平台的可持续发展?.docx
- 如何利用AI+数智应用保障科技平台服务的有效性与可持续性?.docx
- 如何利用AI+数智应用保障科技平台资源丰富且服务有效?.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


