Fiddler的工作原理就是 内建一个代理,作为客户端和网络的中介。在Fiddler启动后,会自动添加一个 IP 为127.0.0.1(回路)端口号为8888的系统代理。但是有一个问题就是 Fiddler退出后,默认情况下并不会删除这个配置。那么就导致了,一些浏览器还是指向这个代理,但是这个代理由于Fiddler已经关闭,所以其不会在起用。所以某些浏览器或是其他的东西可能再开机后无法打开网页,但是QQ就可以。
关键字:Fiddler
有的时候我们需要闭某个端口
downloadAnnex() { const aTag = document.createElement('a') aTag.href = 'http://..........?annexId=' + this.id //文件id aTag.click() },
关键字:8080
width: 300px;height: 400px;background: #42b983; color: rgba(255, 255, 255, 0.8); position: absolute; left: 150px; top: 20%; z-index: 10; font-family: sans-serif; text-align: center; width: 300px; height: 500px; border-bottom: 1px solid rgba(255, 255, 255, 0.4); border-left: 1px solid rgba(255, 255, 255, 0.4); background: linear-gradient( to top right, rgba(90, 149, 207, 0.5), rgba(58, 76, 99, 0.8) );
<script> const promise=new Promise((resolve, reject) =>{ console.log(1) resolve(); console.log(2) } ) promise.then(()=>{ console.log(3) }) console.log(4) console.log(5) </script>
关键字:Promise
let telInput=document.querySelector("input") telInput.addEventListener('input',noDou(demo,1000)) //防抖封装 function noDou(fn,wait){ let timeOut=null; return args=>{ if(timeOut) clearTimeout(timeOut) timeOut=setTimeout(fn,wait) } }
关键字:js防抖
这是今天发现的一个问题。 如果导入多个js文件用
onMounted第一次打开执行, onActivated跳转到这个页面执行, 有一种情况,项目第一个打开,从别到页面跳转到这个页面时onMounted和onActivated会都执行,这时就会有一个问题,onMounted中的可能耗时长的会在onActivated执行时才执行完成,这时就出现了问题。这个问题怎么解决?