
微信小程序
⎛⎝陈嗯嗯⎠⎞
今天不学习,明天变垃圾
展开
-
微信小程序 wx.showToast()的用法,更换icon图标
wx.showToast({ title:"成功", icon: 'success', image: '../../images/fail.png', duration: 2000, mask: false})参数讲解:title ---------------- 标题,要显示的提示信息icon ---------------- 图标,只支持"success"、"loading"im原创 2020-10-23 11:11:57 · 4629 阅读 · 0 评论 -
电影小程序(数据获取使用)————小程序
电影小程序————小程序最近做个电影小程序练练手。util_image.js(1号工具人,用来做数据中转,这方法是老师教的,我以前是喜欢在当前页面直接获取数据的,感觉自己的方法直观简单。不过多学一种又不吃亏。)注意:使用的api是豆瓣的,有次数限制。function getImageListData(time, start, count, callback) { //把数据用变量...原创 2019-11-02 23:22:06 · 4482 阅读 · 2 评论 -
时间戳与日期的转化————小程序
时间戳与日期的转化————小程序const app = getApp()const now = new Date();const month = now.getMonth() + 1 *//⽉份需要+1*const day = now.getDate()var timestamp = Date.parse(new Date()); //把当前日期转化为时间戳数字timestamp...原创 2019-09-16 14:00:45 · 511 阅读 · 0 评论 -
使用api获取数据————小程序
使用api获取数据————小程序onLoad: function (options) { //打开页面即执行。 let that = this; wx.request({ //建立链接 url: 'http://web.juhe.cn:8080/constellation/getAll', //api获取的地址 data: { ...原创 2019-09-18 08:07:59 · 844 阅读 · 0 评论 -
UI库colorui的使用————小程序
UI库colorui的使用————小程序把colorui文件放到你的小程序中包含文件:icon.wxss+main.wxss+components(文件夹里有icon和一些组件)+animation.wxssapp.wxss/**app.wxss**/*@import "colorui/icon.wxss";//定义使用colorui的组件@import "colorui/main....原创 2019-09-21 09:51:48 · 1396 阅读 · 0 评论