vue組件里面如何讓pre和code標(biāo)簽里面的內(nèi)容不被編譯??
例如:
<template> <pre> <code> <xxx-comp></xxx-comp> <div>test</div> </code> </pre> </template>
最終顯示為
一個組件 test
標(biāo)簽全沒了,<愛尬聊_知識大全>內(nèi)容也被編譯出來了
深井冰紅顏為誰一笑等你來啟多彩 1天前
試試加上 v-pre
例如:
<template> <pre> <code> <xxx-comp></xxx-comp> <div>test</div> </code> </pre> </template>
最終顯示為
一個組件 test
標(biāo)簽全沒了,<愛尬聊_知識大全>內(nèi)容也被編譯出來了
試試加上 v-pre