08 2020 档案

摘要:var ua = window.navigator.userAgent.toLowerCase(); //通过正则表达式匹配ua中是否含有MicroMessenger字符串 if(ua.match(/MicroMessenger/i) == 'micromessenger'){ //微信浏览器端 } 阅读全文
posted @ 2020-08-25 17:12 烂笔头~ 阅读(281) 评论(0) 推荐(0) 编辑
摘要:<ul class="q-main-u"> <li v-for="(subitem,subindex) in quectionList" ref="list" :key="subindex"> <span>{{subitem.text}}</span> </li> </ul> 以上,是for循环渲染 阅读全文
posted @ 2020-08-13 12:14 烂笔头~ 阅读(3566) 评论(0) 推荐(0) 编辑
摘要:html部分 <div class="form-code"> <input type="number" v-model="codeVer" placeholder="请输入验证码" /> <button type="button" @click="getCode()" :class="{on:sho 阅读全文
posted @ 2020-08-13 11:41 烂笔头~ 阅读(717) 评论(0) 推荐(0) 编辑
摘要:var multiAnswer = this.multiAnswer; //this.multiAnswer为一个数组 var answer = this.answer; //this.answer为一个数组 for(var i=0;i<multiAnswer.length;i++){ if(mul 阅读全文
posted @ 2020-08-13 11:04 烂笔头~ 阅读(2355) 评论(0) 推荐(0) 编辑
摘要:最近做项目,遇到一个问题,需要根据是否在数组里,判断是否渲染出来 这是一个多选的实现 // multiSelect == 1 为多选 <ul class="q-main-t" v-if="item.multiSelect == 1"> <li v-for="(subitem,subindex) in 阅读全文
posted @ 2020-08-13 10:57 烂笔头~ 阅读(5711) 评论(0) 推荐(0) 编辑
摘要:// 提示信息 // 使用 ShowTip("请输入要搜索的处理机构!", 'info'); function ShowTip(tip, type) { var tip=('#tip'); if ($tip.length == 0) { // 设置样式,也可以定义在css文件中 $tip = 阅读全文
posted @ 2020-08-10 14:10 烂笔头~ 阅读(1922) 评论(0) 推荐(0) 编辑
摘要:APPUpdate.js // #ifdef APP-PLUS import httpfrom@/config/requestConfig;constplatform=uni.getSystemInfoSync().platform;//constmainColor 阅读全文
posted @ 2020-08-09 17:14 烂笔头~ 阅读(1000) 评论(0) 推荐(0) 编辑
摘要:uni-app 的请求接口在官方文档里是这样的 uni.request({ url: 'https://www.example.com/request', //仅为示例,并非真实接口地址。 data: { text: 'uni.request' }, header: { 'custom-header 阅读全文
posted @ 2020-08-09 17:08 烂笔头~ 阅读(8212) 评论(1) 推荐(0) 编辑
摘要:最近发现一个问题 $emit的方法,在父组件中不触发,代码是这样写的, 标红的这行这个方法不执行 Vue.component('component_tan_checke', { props: ['public_checke'], template: '<div class="dialog" v-sh 阅读全文
posted @ 2020-08-07 17:37 烂笔头~ 阅读(3433) 评论(0) 推荐(1) 编辑
摘要:点击一键连接按钮,执行connectWifi 方法; accountNumber: '', //Wi-Fi 的SSID,即账号 bssid: '', //Wi-Fi 的ISSID password: '' //Wi-Fi 的密码 connectWifi: function() { var that 阅读全文
posted @ 2020-08-07 16:50 烂笔头~ 阅读(2527) 评论(0) 推荐(0) 编辑
摘要:// 获取卡包参数 uni.request({ url: '***', //接口地址。 data: { cardId: _this.cardId, }, method: 'POST', success: (res) => { if (res.data.card_id) { //将请求回来的参数保存到 阅读全文
posted @ 2020-08-07 16:45 烂笔头~ 阅读(2563) 评论(0) 推荐(0) 编辑
摘要:1.匹配中文 /^[\u2E80-\u9FFF]+/.test()2./1[09]10/.test() 3.qq邮箱 说明:QQ邮箱最短为5位,最长为10位 /[1-9]\d{4,10}@qq\.com/.test() 4.邮箱 /^([a-zA-Z0-9_-])+@([a-z 阅读全文
posted @ 2020-08-07 15:51 烂笔头~ 阅读(188) 评论(0) 推荐(0) 编辑
摘要:img{ -webkit-filter: grayscale(100%); filter: grayscale(100%); } filter 滤镜属性 grayscale,百分比 将图像转换为灰度图像。值定义转换的比例。值为100%则完全转为灰度图像,值为0%图像无变化。值在0%到100%之间,则 阅读全文
posted @ 2020-08-07 14:23 烂笔头~ 阅读(1184) 评论(0) 推荐(0) 编辑

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