曾志强
曾志强
你好,我想问下关于snabbdom里面的 `while (oldStartIdx
嗯嗯,感谢,看明白了。发现了个小问题,关于while循环的2⃣️.4小点里面的 ``` // 4. 如果 oldEndVnode 和 newStartVnode 相同,执行 patch else if (isSameVnode(oldEndVnode, newStartVnode)) { patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue) // 这里是左移更新后的 dom,原因参考上面的右移。 api.insertBefore(parentElm, oldEndVnode.elm, api.nextSibling(oldStartVnode.elm)) oldEndVnode = oldCh[--oldEndIdx] newStartVnode = newCh[++newStartIdx]...
@BenAnn 抱歉现在才看到这个问题。针对你说的问题我刚才测试了下,并没有发现这个问题。我测试的环境是Mac系统下的 Chrome 59.0.3071.115。由于目前这个库还没有找时间进行大规模的兼容性测试,所以对于具体的一些细节还不太确定。我看你fork了这个库,如果你确实遇到这个问题可以尝试修改源码,给点击拖拽的框加入样式`user-select:none`
@Alxmerino I have the same problem when I use timeout. Maybe we could loop the notify and use a setTimeout function ``` notifier.notify({ 'title': 'My notification', 'message': 'Hello, there!', 'wait':...
您好,我想问下为什么jQ的无new构造为什么要通过借助init函数来实现?直接起一个代理函数不行吗?像这样 ``` var proxyPerson=function(name,sex){ return new Person(name,sex); } var Person=function(name,sex){ this.name=name; this.sex=sex; } Person.prototype.getName=function(){ console.log(this.name); } proxyPerson('qiangzi','male').getName(); ```
包括那个demo的版本在ios微信也存在此问题。尝试修复
重启一下微信就可以了。与微信内核对transition动画的处理有关。
Get the same problem today.Thanks for your solution.