[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fTNxKTAgEfBFlvQQN_vqkYwpCxFwmQi5z3HbBQbDhIJg":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2026-03-06 07:18:26",320838601,[8,9,10,11],"渲染用户输入的评论内容","渲染后端返回的､经过过滤的富文本","渲染第三方接口返回的未处理HTML","渲染URL参数传递的HTML内容",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},14,"1954ab27491faa8c6c2f644531023691","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F25b30343053994e8940089572d36015b.jpg","移动web前端设计","9e72506262bd4458a1b83ae8287c7e34","商品详情","下列哪种情况使用v-html指令是安全的()",[21,32,41,50,53,62,71,80,87,92],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],320838598,[25,26,27,28],"无法渲染换行标签","会覆盖元素内所有原有内容","存在XSS跨站脚本攻击风险","无法与v-bind指令同时使用","使用v-html指令时,最需要注意的问题是()","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],320838599,[36,37,38,39],"Cell组件仅支持默认插槽,无法自定义标题和内容","通过 插槽可自定义Cell的标题区域","自定义Cell内容时,必须删除Cell组件的所有默认属性","插槽自定义的内容无法使用Vue指令(如v-if､v-for)","下列关于Vant Cell组件通过插槽自定义内容结构的说法,正确的是()",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":30,"type":31},[],320838600,[45,46,47,48],"将绑定的数据当作纯文本渲染,不解析任何标签","将绑定的数据渲染为原生HTML内容,解析其中的HTML标签","绑定HTML元素的class属性,实现样式动态切换","绑定HTML元素的事件,实现交互效果","Vue中v-html指令的核心功能是()",{"answer":51,"createTime":5,"id":6,"options":52,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":54,"createTime":5,"id":55,"options":56,"question":61,"source":30,"type":31},[],320838602,[57,58,59,60],"直接给内部DOM标签写样式即可生效","使用深度选择器:deep()穿透scoped作用域","将样式写在全局样式文件中,无需任何处理","给v-html绑定的元素添加inline-style样式","Vue组件中,给v-html渲染的元素内部DOM结构设置样式(组件样式加了scoped),正确的做法是 ()",{"answer":63,"createTime":5,"id":64,"options":65,"question":70,"source":30,"type":31},[],320838603,[66,67,68,69],".highlight { color: red; }",":deep(.highlight) { color: red; }",".v-html .highlight { color: red; }",".content &gt; highlight { color: red; }","下列代码中,能成功给v-html渲染的 标签设置红色字体的是(组件样式有 scoped)()",{"answer":72,"createTime":5,"id":73,"options":74,"question":79,"source":30,"type":31},[],320838604,[75,76,77,78],"&lt;van-cell&gt;&lt;template #right-icon&gt;&lt;van-icon name=&quot;close&quot; \u002F&gt;&lt;\u002Ftemplate&gt;&lt;\u002Fvan-cell&gt;","&lt;van-cell right-icon=&quot;close&quot;&gt;&lt;\u002Fvan-cell&gt;","&lt;van-cell&gt;&lt;van-icon name=&quot;close&quot; slot=&quot;right-icon&quot; \u002F&gt;&lt;\u002Fvan-cell&gt;","&lt;van-cell :right-icon=&quot;&lt;van-icon name='close' \u002F&gt;&quot;&gt;&lt;\u002Fvan-cell&gt;","要给Vant Cell组件自定义右侧图标(替换默认箭头),正确的插槽用法是()",{"answer":81,"createTime":82,"id":83,"options":84,"question":85,"source":30,"type":86},[],"2026-03-06 07:23:56",320839646,[],"v-html指令会__绑定元素内的所有原有内容,包括子元素和插值语法",2,{"answer":88,"createTime":82,"id":89,"options":90,"question":91,"source":30,"type":86},[],320839647,[],"Vue3中,给v-html渲染的内部DOM设置样式(scoped样式),需使用__深度选择器穿透作用域",{"answer":93,"createTime":82,"id":94,"options":95,"question":98,"source":30,"type":99},[],320839648,[96,97],"正确","错误","Vant Cell组件的插槽只能自定义文本内容,无法插入其他Vant组件(如Icon､Button).()",3]