Commit 3a48a5dd authored by hbcui1984's avatar hbcui1984

解决hello mui关于页面打开Github地址后,无法返回的问题;

parent c9a268e0
...@@ -66,5 +66,19 @@ ...@@ -66,5 +66,19 @@
margin-left: 5px; margin-left: 5px;
} }
</style> </style>
<script type="text/javascript" charset="utf-8">
//处理点击事件,需要打开原生浏览器
$('body').on('tap', 'a', function(e) {
var href = this.getAttribute('href');
if (href) {
if(window.plus){
plus.runtime.openURL(href);
}else{
location.href = href;
}
}
});
</script>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment