Wing Meng

Results 75 comments of Wing Meng

我的思路是通过判断 indexOf 和 lastIndexOf 的值是否相等来找出只出现一次的数。 ```js function singleNumber(nums) { return nums.filter( (num, idx, array) => array.indexOf(num) === array.lastIndexOf(num) )[0]; } ```

```js window.Promise && !('finally' in Promise) && !function() { Promise.prototype.finally = function(cb) { cb = typeof cb === 'function' ? cb : function() {}; var Fn = this.constructor; // 获取当前实例构造函数的引用...

从最终渲染的 DOM 来看,这两者都是链接,都是 `` 标签,区别是: `` 是 react-router 里实现路由跳转的链接,一般配合 `` 使用,react-router 接管了其默认的链接跳转行为,区别于传统的页面跳转,`` 的“跳转”行为只会触发相匹配的 `` 对应的页面内容更新,而不会刷新整个页面。 而 `` 标签就是普通的超链接了,用于从当前页面跳转到 href 指向的另一个页面(非锚点情况)。

Please see the note about `easysass.targetDir` , it's very clear: "Target directory for generated files. If relative, will be based on currently opened folder in VS Code." So, if `www`...

So far, I haven't found it supported sourcemap. ⊙︿⊙