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