vue读取本地图片
<template><div class="searchbox"><img :src="images.searchpng" style="height: 500px;"/></div></template><script>export default {data() {return {images: {searchpng:re
·
<template>
<div class="searchbox">
<img :src="images.searchpng" style="height: 500px;"/>
</div>
</template>
<script>
export default {
data() {
return {
images: {
searchpng:require('@/views/zhangming/label/picture/s5.jpg'),
},
}
}
}
</script>
<style lang="scss" scoped>
</style>
更多推荐
已为社区贡献5条内容
所有评论(0)