随笔分类 -  百度小程序

摘要:https://smartprogram.baidu.com/docs/develop/framework/operating-environment/ async,await:支持https://smartprogram.baidu.com/docs/develop/devtools/compla 阅读全文
posted @ 2021-05-08 20:46 Running00 阅读(63) 评论(0) 推荐(0) 编辑
摘要:https://smartprogram.baidu.com/docs/develop/function/opensmartprogram/ 阅读全文
posted @ 2021-03-28 20:12 Running00 阅读(50) 评论(0) 推荐(0) 编辑
摘要:<!-- 宽度不变,高度自动变化,保持原图宽高比不变 --> <image mode="widthFix" src="{{src}}" /> <!-- <image mode="aspectFit" src="{{src}}" /> 保持纵横比缩放图片,使图片的长边能完全显示出来。也就是说,可以完整 阅读全文
posted @ 2021-03-26 10:49 Running00 阅读(183) 评论(0) 推荐(0) 编辑
摘要:1、以750px像素的设计稿,按照设计稿的尺寸单位设置使用rpx; 阅读全文
posted @ 2021-03-24 14:31 Running00 阅读(7) 评论(0) 推荐(0) 编辑
摘要:1)openShare 调起分享面板。 参数:都是非必填 (1)title:分享标题 (2)content:分享内容 (3)imageUrl:分享图片 (4)path:页面 path ,必须是以 / 开头的完整路径。如果 path 中的参数包含中文字符,需通过 encodeURIComponent 阅读全文
posted @ 2021-03-23 19:53 Running00 阅读(35) 评论(0) 推荐(0) 编辑
摘要:1)轮播图: 小程序中有swiper,可以做轮播图 2)分享: 调起分享端能力:openShareapi 3) 调起地图查看位置: 使用宿主 App 内置地图查看位置openLocationapi h5可以的api:http://lbsyun.baidu.com/index.php?title=ur 阅读全文
posted @ 2021-03-23 19:22 Running00 阅读(62) 评论(0) 推荐(0) 编辑
摘要:1 getSystemInfoSync().windowHeight // 窗口的高度 2 createSelectorQuery() .select('css选择器') .boundingClientRect() .exec(rect ⇒ {console.log(rect, 可以得到某个元素的高 阅读全文
posted @ 2020-07-06 18:44 Running00 阅读(102) 评论(0) 推荐(0) 编辑
摘要:1 标签view:类似html中div 阅读全文
posted @ 2020-06-22 14:37 Running00 阅读(85) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/cvper/article/details/83099700 阅读全文
posted @ 2020-06-05 13:23 Running00 阅读(245) 评论(0) 推荐(0) 编辑
摘要:1 小程序的标签例如(view)的class是用来做组合用的,写样式时候不要用小程序中的标签view的class做选择器,只能使用view标签 阅读全文
posted @ 2020-04-16 15:38 Running00 阅读(151) 评论(0) 推荐(0) 编辑
摘要:生命周期 onPullDownRefresh: 当处理完数据刷新后,swan.stopPullDownRefresh可以停止当前页面的下拉刷新。 onPageScroll 参数:scrollTop 页面在垂直方向已滚动的距离(单位px) setData 用于将数据,从逻辑层发送到视图层 +事件绑定和 阅读全文
posted @ 2019-07-25 16:55 Running00 阅读(156) 评论(0) 推荐(0) 编辑
摘要:逻辑层: 智能小程序的逻辑层使用 JavaScript 编写;逻辑层将数据进行处理后发送给视图层,同时接受视图层的反馈。 提供了 getApp 和 getCurrentPages 方法,分别用来获取 App 实例和当前页面栈; 框架本身并非运行在浏览器中,所以 JavaScript 在 Web 中的 阅读全文
posted @ 2019-07-25 16:38 Running00 阅读(228) 评论(0) 推荐(0) 编辑
摘要:调试预览发布 没权限时候 或者没 appid 时候, 预览、发布、 真机调试、 远程调试 四个按钮不可用 Taro jd, Mpvue mt, WePY wx, Okam bd 阅读全文
posted @ 2019-07-25 16:18 Running00 阅读(108) 评论(0) 推荐(0) 编辑
摘要:1.使用百度开发者工具调试,开发者可以完成智能小程序的 API 和页面的开发调试、智能小程序预览和发布等功能。 全局配置 app.json 设置界面、路径、多tab pages 数组第一项代表 SWAN 初始页面。配置项中不需要加文件后缀名, SWAN 会自动解析。 window 用于设置 SWAN 阅读全文
posted @ 2019-07-22 13:04 Running00 阅读(773) 评论(0) 推荐(0) 编辑

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