v-html样式 APP不显示,uni-app不支持svg文件显示吗?v-html显示不了svg图
{{title}}export default {data() {return {title: 'my project',svgdata:"",}},onLoad() {this.handleopen()},methods: {handleopen(){console.log("11111")uni.request({url:'../static/201.svg',success: functio
{{title}}
export default {
data() {
return {
title: 'my project',
svgdata:"",
}
},
onLoad() {
this.handleopen()
},
methods: {
handleopen(){
console.log("11111")
uni.request({
url:'../static/201.svg',
success: function (res) {
console.log(res.data)
this.svgdata=res.data;
}
})
},
}
}
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
更多推荐
所有评论(0)