dkl520

Results 4 issues of dkl520

![image](https://user-images.githubusercontent.com/18753052/112086743-bff21c00-8bc7-11eb-8753-d65a97a7765c.png) getMenu: function getMenu() { var ref = this.appendToBody ? this.$refs.portal.portalTarget : this; var $menu = ref.$refs.menu.$refs.menu; return $menu && $menu.nodeName !== '#comment' ? $menu : null; }, $menu 数据找不到...

renderDom() { let content=this.selectComponent(".couponSlot"); // let content = document.querySelector('.couponSlot').children[0] content.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml') this.$refs.foreignObject.appendChild(content) } 这里挂载和查找都用到了 dom 操作 但是在微信小程序中是不可以用dom的 请问如何兼容呢。

这个会运用 defaultStrat 策略 如果没有子元素 则会返回父元素 不谈会直接返回子元素。。并不是求和。。