uniapp view是怎么实现的?
<template> <uni-view v-if="hoverClass && hoverClass !== 'none'" :class="[hovering?hoverClass:'']" @touchstart="_hoverTouchStart" @touchend="_hoverTouchEnd" @touchcancel="_hoverTouchCancel" v-on="$listeners" > <slot /> </uni-view> <uni-view v-else v-on="$listeners" > <slot /> </uni-view> </template>找到源码,发现是用uni-view包了一层! 那么问题是: 这个uni-view是哪里来的? 直接不解析放到h5页面么?
如果是到h5中,最后是会解析成div的,那么这个解析是在哪里触发的呢?
1 个回复
邱韩
h函数吗