VaJoy Lan

Results 39 comments of VaJoy Lan

@XadillaX 嗯嗯是滴,提前声明了但没提前赋值

玩一玩ES6吧,这算不算bug呢?@XadillaX ``` javascript "use strict"; function a(x,y){ y = function(){x=2;}; return function(){ y(); console.log(x); let x = 3; //use let }.apply(this,arguments); } a(); ``` iojs运行后报错说x没定义过不能执行`console.log(x)`, 但注释掉 `let x = 3`...

玩点小花样吧,ES5来帮忙 ``` function argments2array(){ return [].map.call(arguments,function(item){ return item }); } ``` 或者ES6(不过V8都还不支持from方法) ``` function argments2array(){ return [].from(arguments) } ```

``` javascript String.prototype.render = function(option){ var s = this, reg; Object.keys(option).forEach(function(k){ reg = new RegExp("\\$\\("+k+"\\)","g"); s = s.replace(reg,option[k]) }); return s }; var greeting = 'my name is $(name),age $(age)';...

@think2011 举个栗子?⊙﹏⊙

FYI - The error shows in VS Code: ![image](https://user-images.githubusercontent.com/7721635/156265602-bccd866d-fa1b-47ac-ae39-61e28ff8279c.png)

> I had the same problem. > > I have a mistake here: `[vite:build-html] No corresponding legacy polyfill chunk found for /home/projects/github-kyokdx-u2bdcf/app2/index.html` > > my project use @originjs/vite-plugin-federation and @vitejs/plugin-legacy...

试过在 popup 输入 `shift+i` 网易云的歌曲id (307093),但没有任何效果。 参考问题歌曲: spotify:https://open.spotify.com/track/0pltpGgtKj1CWd7MUWzYT3?si=75f32aca682d4c97 网易云:https://music.163.com/#/song?id=307093