摘要: 一、v-text 用于渲染普通文本,无论何时,绑定的数据对象上 msg属性发生了改变,插值处的内容都会更新。 1 2 3 <span v-text="message"></span> <!-- 简写方式 --> <span>{{message}}</span> export default { da 阅读全文
posted @ 2020-12-17 11:07 sunny-cf 阅读(403) 评论(0) 推荐(0)
摘要: 子组件的请求写在父组件中 父组件: 子组件: 阅读全文
posted @ 2020-12-17 07:34 sunny-cf 阅读(1423) 评论(0) 推荐(0)
摘要: 效果如下: 1 <!-- 列表 --> 2 <view class="collapse" v-for="(item,index) in itemList" :key="index"> 3 <view @click="changeContent(item,index)"> 4 <view class= 阅读全文
posted @ 2020-12-12 14:19 sunny-cf 阅读(11282) 评论(0) 推荐(0)
摘要: 去边框:button::after { border:0 } 修改disabled样式: button[disabled] { color: #fff !important; background-color: #18BBB4 !important; } 阅读全文
posted @ 2020-12-12 12:37 sunny-cf 阅读(63) 评论(0) 推荐(0)