Ray

Results 5 comments of Ray

> You might have realized this already but it already works this way: > > ``` > this.unregisterFetch = fetchIntercept.register({ > request: async (url, config = {}) => { >...

> Hi, Is it possible to perform asynchronous calls in a "request" interceptor? I have an interceptor that gets the access token from the localforage library but all methods are...

> 在js使用了模块导入的方式下,输出的结果是undefined,undefined,20。有大佬知道是为什么吗 是因为第一句var a=10;中的a 不是挂载在window上的 ,所以立即执行函数中的 window.a的值是 undefined

> 调整页面大小,触发resize()的时候能否禁止重新生成词云? > 重新生成词云,让用户都不知道结果是什么情况,希望能给禁用选项。 > > 另外能否对于动画效果给个禁用选项? 1. 定义一个中间变量(mid) 2. 如果窗口resize时,若热词图的宽度clientWidth === mid,则在setOptions前return; 3. 如果宽度有变化( mid!==clientWidth ),则继续setOptions,且把当前热词图的宽度赋给中间变量,即 mid = clientWidth

> i solved by putting the public key in JSEncrypt instantiation instead > > `encrypt = new JSEncrypt(publickey);` This method works, nice !