H5实现代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>测试H5</title>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="app">
<div class="wrapper">
<div class="reHome" id="reHome">
返回首页
</div>
</div>
</div>
<script>
$('#reHome').click(function(){
wx.miniProgram.reLaunch({
url: '/pages/logs/logs'
})
})
</script>
</body>
</html>