dbl520

Results 14 comments of dbl520

> 在IE下报 `对象不支持“forEach”属性或方法"` > ![image](https://user-images.githubusercontent.com/21984603/74310648-9d78b700-4da8-11ea-9c9c-ba7f93d7cc04.png) > 参考[浏览器兼容性](https://cli.vuejs.org/zh/guide/browser-compatibility.html#usebuiltins-usage) > 做了以下处理还是没有作用 > > ```js > { > useBuiltIns: 'usage', > polyfills: [ > 'es6.promise', > 'es6.symbol', > 'es6.array.from', > 'es6.array.for-each' > ]...

面试题: 有如下格式的原始数据: var obj ={ "title":"颜色", "items":[ { "title":"黄色", "flag":true, "child":{ "title":"尺码", "items":[ { "title":"XL", "flag":true, "child":{ "title":"形状", "items":[ { "title":"多边形", "flag":true, "skuId":1 }, { "title":"方形", "flag":false, "skuId":2 } ]...

> 两轮遍历,时间复杂度 O(n^2) 😂 > > ```js > function convert(arr) { > let tree = []; > > arr.map((it, idx, array) => { > let parent = it.parentId; > >...

一样啊。大佬们解决了? ![image](https://user-images.githubusercontent.com/17171011/62409996-3e283600-b612-11e9-82dc-e076883cded4.png)

"workspace-aggregator-1917a6ce-f14f-4b68-a050-0f6f7e8482d9 > gl-unified-permission > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". warning "workspace-aggregator-1917a6ce-f14f-4b68-a050-0f6f7e8482d9 > pf-user-awareness-web > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". warning "workspace-aggregator-1917a6ce-f14f-4b68-a050-0f6f7e8482d9 > gl-unified-permission >...

> > 概念上我觉得没啥问题,具体在业务上有啥应用的地方吗(尤其是前端)? > > 2.14补充 > > 对象的深拷贝 > > 前端确实很少涉及算法。 这个我也只在做小游戏的时候有用到过 问下大佬,有个旧的json 格式转成新的json格式 var old ={ "颜色":[ { "黄色":{ "尺码":[ { "XL":{ "形状":[ { "多边形":1 }, { "方形":2...