随笔分类 -  JavaScript

摘要:${version} Execute Javascript return window.navigator.userAgent 阅读全文
posted @ 2019-09-24 10:31 小心走火 阅读(184) 评论(0) 推荐(0) 编辑
摘要:element.scrollIntoView(); // 等同于element.scrollIntoView(true) element.scrollIntoView(alignToTop); // Boolean型参数 element.scrollIntoView(scrollIntoViewOp 阅读全文
posted @ 2019-09-24 10:18 小心走火 阅读(432) 评论(0) 推荐(0) 编辑
摘要:document.body.innerHTML = document.body.innerHTML.replace(/一个/ig,"<span style='color: red;'>$&</span>"); document.getElementById("做ui自动化时写了2个方法方便清晰辨识定 阅读全文
posted @ 2019-03-07 16:16 小心走火 阅读(1581) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示