公司最新需求
後臺返回html片段,插入到vue中
這個需求不簡單嗎
v-html就能實現了
但是,如果返回的html片段裏面有變量呢
。。。。。what fuck
上圖
加入後臺返回的html片段是:'<div><span>{{customData[0].name}}</span></div>'
其中customData在data中已經註冊
現在要把這個html片段插入到頁面中
我試過了template、render、Vue,compile()
統統都不可以
求哪位大佬給我指條明路,萬分感謝!