随笔分类 -  小程序

摘要:结构: 全局样式: 动态化: 声明动态下标: 上一张+1,下一张-1: 阅读全文 »
posted @ 2022-11-21 17:33 Cherishe 阅读(118) 评论(0) 推荐(0) 编辑
摘要:冒泡概念 阻止冒泡 冒泡和没有冒泡 阅读全文 »
posted @ 2022-11-21 17:19 Cherishe 阅读(21) 评论(0) 推荐(0) 编辑
摘要:![](https://img2022.cnblogs.com/blog/2417661/202211/2417661-20221121170808390-1477180065.png) 阅读全文 »
posted @ 2022-11-21 17:08 Cherishe 阅读(11) 评论(0) 推荐(0) 编辑
摘要:v-bind:src 简写为:src 插值语法可以渲染到行内: <组件 src="{{pic}}"></组件> 阅读全文 »
posted @ 2022-11-21 16:06 Cherishe 阅读(14) 评论(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 阅读(347) 评论(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 阅读(44) 评论(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 阅读(16) 评论(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 阅读(40) 评论(0) 推荐(0) 编辑
摘要:设置需要关闭代理 容器组件-view的使用 做布局 app.json中直接创建文件 <view></view>: 容器组件 html标签无法解析:不认识标签,没写 创建文件: pages/second/second view 类似(html的div) <!--点击事件--> <!-- 指定按下去的样 阅读全文 »
posted @ 2022-11-21 11:44 Cherishe 阅读(151) 评论(0) 推荐(0) 编辑
摘要:不使用云服务 JS基础模板 模拟器:模拟手机环境(用的多) 预览(真机查看):手机扫描看效果(用的少) page/index/index.wxml 阅读全文 »
posted @ 2022-11-21 10:51 Cherishe 阅读(62) 评论(0) 推荐(0) 编辑
摘要:单词: WeixinJSBridge(微信JS桥梁) invoke(调用) imagePreview(图片预览) current(当前图片路径) urls(所有图片url列表) function(功能) res(响应回来的结果) 概念: 使用 WeixinJSBridge 预览图片 使用: Weix 阅读全文 »
posted @ 2022-11-21 09:58 Cherishe 阅读(291) 评论(0) 推荐(0) 编辑
摘要:https://www.wolai.com/fzWKLLPCvDxRwAfTWKeXeR 阅读全文 »
posted @ 2022-11-21 09:33 Cherishe 阅读(23) 评论(0) 推荐(0) 编辑
摘要:注册: https://mp.weixin.qq.com/cgi-bin/wx?token=&lang=zh_CN https://mp.weixin.qq.com/ 开发工具: https://developers.weixin.qq.com/miniprogram/dev/devtools/st 阅读全文 »
posted @ 2022-11-21 09:31 Cherishe 阅读(59) 评论(0) 推荐(0) 编辑
摘要:原生小程序开发 uniapp开发(写一套代码,生成多套程序:移动app,网页,...) 微信小程序开发模式:独立开发 建议: 自己独立敲 多看文档 特点: 体积小,轻便,使用方便,下载(需要下载),它依赖于微信平台 目前常见的小程序有: 粤康码 核酸码 ... 移动app: 需要下载,需要安装 能提 阅读全文 »
posted @ 2022-11-21 09:23 Cherishe 阅读(28) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示