liam
liam
https://www.zhihu.com/question/41220520 看了这个你还不懂的话,你来找我
> @lawler61 if you see 5vw from 16px, then 16 / 5 * 100 = 320 (viewportWidth). > 320 — default viewportWidth. Your settings did not apply. > Show your...
@jantimon sorry didn't make it clear. In micro frontend architecture, the micro project can provide js file as its entry, which will later be loaded, mounted and unmounted by the...
@jantimon Hi and thanks Let's put it this way. Leave the brilliant template features of html-webpack-plugin aside, another problem that it solving is to collect the entry bundles into template...
@jantimon I think it is a normal thing coz the entry.css is required, like html template does, may generates like ```html Example template ``` And for that, we can insert...
恕我直言,这不就是js元编程吗,重写了下 . 运算符而已,刚学es6的时候就知道了 不过话说回来,当时学 proxy ,reflect 时是真的被神奇到了
@anwenyao 你这样理解是对的,当时面试时我也是这个思路。写面经时想尽量简单些,就直接以 显示监听属性后才数据劫持 为基准,如 data.observe("a", callbackObj); data.b; // undefined
> 也可以使用Promise.race @DualWield 是呀,本质就是在问 race 实现
@linfanxxxx 这个模拟的是 dom2 的方法,一般都是用带名的,你可以回想 button 如何定义事件的 div.addEventListener('click', fn); div.removeEventListener('click', fn); 当然你也可以用 dom0 级事件,div.onclick = null; 这样回收机制机就会清理内存了
@AqingCyan 校招。观察者和订阅发布模式是有区别的,主要是看有无中介者来传递消息,也就是像你说的是否能相互感知,但平时的话也可以不做区分,这里手撸的事件的话算是观察者模式