随笔分类 - uniapp
摘要:uni.chooseImage({ count: 9, // 从相册选择 sourceType: ['album'], success: (res) => { this.fileList = res.tempFiles //res.tempFilePaths是返回的图片数组file 循环调用获取图片
阅读全文
摘要:
css 使用 点击查看下载css库 css自定义的样式: /* 亮高 */ .box-blue { background-color: #409EFF; color: white; border-radius: 10rpx; } /* 中间连接 背景颜色 */ .bg-light-blue { wi
阅读全文

摘要:第一步:在项目文件的根目录上添加一个components文件夹 我这里.配置的是全局的颜色 第二步:在需要用的组件上使用 注意:1.在使用全局组件的时候是不需要引入的直接以标签的形式使用; 2.components文件夹的名字是固定的
阅读全文
摘要:pages.json 文件里所有代码: { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path" : "pages/home/home", "style" : { "navigat
阅读全文
摘要:第一种: 通过<navigator>标签 里的url进行跳转 <template> <view class=""> <text>跳转到排行榜</text> <navigator url="../Ranking_list/Ranking_list">排行榜</navigator> </view> </
阅读全文