06 2021 档案
摘要:将textarea绑定的事件改成blur,bindblur 但是需要使用form表单的格式拿到textarea的值 如果是一般的input,可以直接使用bindchange拿到值
阅读全文
摘要:父组件: <tpupload bind:tpuploadFun="tpupload1" imgs="{{imgs}}" tpNum='9' ></tpupload> // 事件可以拿到传来的参数 tpupload1(e){ console.log(e.detail.imgs, '这个是子组件传递来的
阅读全文
摘要:微信小程序图片上传功能包含:上传到七牛云、删除图片、查看图片 1.创建子组件tpupload // wxml文件 <view class="weui-uploader"> <view class="weui-uploader__bd " style="flex-wrap: wrap; display
阅读全文
摘要:onInput(event) { const { detail, currentTarget } = event; const date = new Date(detail); var newDate = reFun.dateFormat("YYYY-mm-dd", date) }, 结果:
阅读全文
摘要:参考:https://blog.csdn.net/txqd1989/article/details/79096415 本文采用第二种方法,使用异步Promise来解决页面加载完成后却拿不到storage中的内容,页面加载在登录前 本文讲的是登录获取不到数据的问题及登录步骤 1.在app.js创建方法
阅读全文
摘要:var app = getApp(); var request = require("../utils/request") // 获取定位 function getAddress(that) { var userinfo = wx.getStorageSync('userinfo') // user
阅读全文
摘要:1.创建一个子组件colNav 2.将创建的子组件中的js文件的Page改成Component,必要 3.在子组件的json文件中,设置"component": true { "usingComponents": {}, "component": true } 4.子组件接收父组件传来的参数,在js
阅读全文
摘要:<button type="primary" open-type="contact">在线咨询</button> 关键在 open-type="contact"仅真机有效
阅读全文
摘要:参考:jianshu.com/p/22d8974c5e04 https://www.jianshu.com/p/61bb3784c6ad return Scaffold( backgroundColor: Color(0xfff6f6f6), bottomNavigationBar: BottomN
阅读全文