摘要:
src/router 路由懒加载: 路由异步组件: 阅读全文
posted @ 2022-11-21 18:22
Cherishe
阅读(18)
评论(0)
推荐(0)
摘要:
结构: 全局样式: 动态化: 声明动态下标: 上一张+1,下一张-1: 阅读全文
posted @ 2022-11-21 17:33
Cherishe
阅读(124)
评论(0)
推荐(0)
摘要:
冒泡概念 阻止冒泡 冒泡和没有冒泡 阅读全文
posted @ 2022-11-21 17:19
Cherishe
阅读(28)
评论(0)
推荐(0)
摘要:
 阅读全文
posted @ 2022-11-21 17:08
Cherishe
阅读(16)
评论(0)
推荐(0)
摘要:
v-bind:src 简写为:src 插值语法可以渲染到行内: <组件 src="{{pic}}"></组件> 阅读全文
posted @ 2022-11-21 16:06
Cherishe
阅读(18)
评论(0)
推荐(0)
摘要:
事件: <button bindtap="fn1">摸我</button> <button bindlongtap="fn1">长按</button> JS: data:{ }, fn1(){ console.log("摸我干啥?") } <view> <text>{{msg}}</text> <b 阅读全文
posted @ 2022-11-21 15:58
Cherishe
阅读(354)
评论(0)
推荐(0)
摘要:
轮播图容器:里面只能放swiper-item 使用: <swiper>:铺满宽度 <swiper-item>:铺满宽度 //水平铺满解决方案: <image src="1"></image>:with:100% + mode="widthFix" </swiper-item> <swiper-ite 阅读全文
posted @ 2022-11-21 15:08
Cherishe
阅读(52)
评论(0)
推荐(0)
摘要:
滚动: 盒子:固定高度 overflow:auto; 容器组件: scroll-view+固定高度(wxss高度) scroll-x:横向滚动 scroll-y:纵向滚动 使用: <scroll-view scroll-x> //整个屏幕的滚动 lorem*50//放不了 //需要放容器 </scr 阅读全文
posted @ 2022-11-21 14:54
Cherishe
阅读(18)
评论(0)
推荐(0)
摘要:
text: 文本 只能放文字,放别的组件无法解析 <text></text> rich-text: 富文本 放别的组件能够被解析出来 <rich-text></rich-text> 属性: space ="ensp/emsp/nbsp" nodes: <rich-text nodes="<h3>原生 阅读全文
posted @ 2022-11-21 14:43
Cherishe
阅读(43)
评论(0)
推荐(0)
摘要:
1.安装axios: cnpm i axios -S 2.启动项目: yarn serve npm run serve 3.在全局main.js导入axios: import axios from 'axios' 4.挂载至原型(作用:全局使用): Vue.prototype.axios = axi 阅读全文
posted @ 2022-11-21 14:34
Cherishe
阅读(505)
评论(0)
推荐(0)

浙公网安备 33010602011771号