08 2021 档案
摘要:1、制作一个微信上传图片的功能 <!-- index.wxml --> <view class="con"> <text class="title">上传照片</text> <view class="img_list"> <block wx:for="{{imgList}}" wx:key="ind
阅读全文
摘要:1、在element 的基础上做一个 图片上传功能: <template> <div> <!-- list-type 图片的显示类型 --> <!-- action 图片要上次服务器的地址 --> <!-- on-preview 点击文件列表中已上传的文件时的触发的钩子函数(点击显示对应的预览图片)
阅读全文
摘要:1、在微信上分享的时候发现只有头部标题显示,没有内容和图片,那么如何自定义内容和图片呢? 首先第一步在 index.html先引入微信JS sdk <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2
阅读全文
摘要:1、利用计算属性实现一个时间戳格式转化的功能: (date.js) const dataFormat = function(originVal) { const dt = new Date(originVal) const y = dt.getFullYear() const m = (dt.get
阅读全文
摘要:如: <div id="carouselExampleCaptions001" class="carousel slide" data-ride="carousel"> <div class="carousel-inner" style="height: 100%;"> <div class="ca
阅读全文