摘要: {{ }} 里面可以是: 表达式 字符串 函数 正则表达式 boolean 主要有 1.{{num + 1}} 运算符 data:{ num:5 } 2.{{status ? ‘succeed’ : ‘failed’}} 三元表达式 data:{ status: true } 3.{{changeT 阅读全文
posted @ 2020-09-15 18:29 鸣人卷~~ 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 1、html代码 <div slot="ti_content" style="width: 100%;height: 250px;overflow-y: auto;"> <span v-html="highlight(addFromData.ti_content)"></span> </div> < 阅读全文
posted @ 2020-09-15 11:19 鸣人卷~~ 阅读(2238) 评论(0) 推荐(0) 编辑
摘要: 前端目标代码: <ul v-loading="loading"> <li v-for="(item, index) in options" :key="index" :style="{ cursor: item.tic_parent_id != 0 ? 'pointer' : '' }" :clas 阅读全文
posted @ 2020-09-15 10:19 鸣人卷~~ 阅读(1217) 评论(0) 推荐(0) 编辑