为了解决ninx反向代理,添加路由,但最终react的route还是不认识,研究了半天做个记录: document.addEventListener("keydown",function(event){ if (event.code === 'F5') { event.preventDefault(); console.info(event.code, event); var pathname = location.pathname; var newUrl = null; if (pa
HBuilder/Mui开发的APP使用上拉刷新,当滚动到底部是会触发上拉刷新,加载更多数据.但是ios上确是一个坑,导致滚动条无法滚动. 解决方法 放弃Mui的上拉刷新,自己使用JS实现. var old = Date.now(); document.addEventListener('scroll', function () { if (document.body.scrollHeight == document.body.scrollTop + window.innerHeight) {