js 注意事项

es6降级js

<script src="https://cdn.bootcss.com/babel-polyfill/6.23.0/polyfill.min.js"></script>

安卓覆盖input

<script> window.addEventListener("resize", function () { if ( document.activeElement.tagName === "INPUT" || document.activeElement.tagName === "TEXTAREA" ) { window.setTimeout(function () { document.activeElement.scrollIntoViewIfNeeded(); }, 0); } }); </script>

posted @ 2018-10-09 09:40  mrt_yy  阅读(96)  评论(0编辑  收藏  举报