自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 收藏
  • 关注

转载 vue换算单位px自动转换rem

cnpm i postcss-px2rem --savecnpm install px2rem-loader --save2、配置px2rembuild目录下vue-loader.conf.js中,做如下修改:module.exports = {loaders: utils.cssLoaders({sourceMap: isProduction? ...

2019-09-28 14:14:00 389

转载 css使Img图片居中显示

<div class="flex-center listing-img"> <img v-if="item.imgUrl" v-bind:src="item.imgUrl" alt="not find picture"> <img v-if="!item.imgUrl" src="../../assets/img/detail-not...

2019-09-26 10:48:00 1575

转载 formData请求接口传递参数格式

element ui组件方法的传递//引入 组件。<el-upload class="avatar-uploader" :action="action" :http-request="uploadFile" :show-file-list="false"> <img v-if="imageUrl" :sr...

2019-09-23 11:11:00 8068

转载 vue过滤金额自动补全小数点

watch:{ //监听input双向绑定 balance(value) { //保留2位小数点过滤器 不四舍五入 var toFixedNum = Number(value).toFixed(3); var realVal = toFixedNum.substring(0, toFixedNum.toString().length - 1);...

2019-09-21 15:40:00 771

转载 vue Element验证input提示

<el-form-item prop="userName" class="userName_color"> <b>详细地址<i class="red">*</i></b> <el-input placehol...

2019-09-20 20:44:00 664

转载 vue点击按钮复制文本框内容

1.npm进行安装npm install clipboard --save 2.在需要使用的组件中import引用方法:import Clipboard from 'clipboard';3.添加需要复制的内容<button class="tag-read" data-clipboard-text="我是可以复制的内容,请点击复制" @c...

2019-09-19 18:53:00 1392

转载 js验证邮箱格式

  function test() { var temp = document.getElementById("text1"); //对电子邮件的验证 var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+...

2019-09-18 19:50:00 358

转载 Vue Element ui密码框校验

<el-form-item prop="repeat_Password" class="userName_color"> <el-input type="password" placeholder="请再次输入新密码" v-model="loginRuleForm.repeat_Password" ma...

2019-09-18 15:05:00 1091

转载 js手机号隐藏中间四位

var tel = "13122223333";var reg = /^(\d{3})\d{4}(\d{4})$/;tel = tel.replace(reg, "$1****$2");console.log(tel);  转载于:https://www.cnblogs.com/wuliujun521/p/11540928.html...

2019-09-18 11:44:00 97

转载 vue实现省市区三级联动

npm 安装npm install v-distpicker --saveVue全局引入组件import Distpicker from 'v-distpicker'Vue.component('v-distpicker', Distpicker)也可以那里需要,哪里引入import VDistpick...

2019-09-16 21:08:00 161

转载 Taro开发微信小程序遇到的问题和解决方法

1.scroll-view 置顶, 给设置scroll-top为0无效问题?解决方案: 不触发置顶问题,需要给scroll-top一个设置接近0的随机数,Math.random()2.scroll-view绑定bindscrolltolower没有触发问题?解决方案: 通过获取系统信息wx.getSystemInfoSync()拿到屏幕的高度,然后减去其他组件占位...

2019-09-06 16:00:00 1328

转载 Taro时间选择器+地址选择器

时间地址选择器https://www.manzj.net/topic/5c3c2123cd01b8af5bce4373转载于:https://www.cnblogs.com/wuliujun521/p/11466381.html

2019-09-05 15:32:00 2142

转载 Taro下拉刷新,上拉加载更多

1、引入插件import Taro, { Component } from '@tarojs/taro'import { View, Text, ScrollView } from '@tarojs/components'import { AtActivityIndicator } from 'taro-ui'import './index.scss'...

2019-09-05 10:30:00 2405

转载 taro开发微信小程序-页面开发规范

https://blog.csdn.net/museions/article/details/84133824https://blog.csdn.net/museions/article/details/84133773转载于:https://www.cnblogs.com/wuliujun521/p/11460706.html

2019-09-04 18:04:00 91

转载 视频Video放器的部分实例方法

***创建一个视频播放器实例let myPlayer = this.$video(myVideo, { controls: true, autoplay: 'muted', preload: "auto", });创建实例后,可以通过两种方式全局访问它:this.$video.players.myVideo;this....

2019-09-04 16:41:00 428

转载 Input框搜索关键字高亮显示

ruleTitle(text, val) { if (!val) return text; const result = text.replace( new RegExp(val, "g"), ` <span class="primary_title">${val}</span>` ); ...

2019-09-04 16:26:00 709

转载 vue上拉加载下拉加载

npm i vue-scroller<scroller :on-refresh="refresh" :on-infinite="infinite" :noDataText="msg"></scroller >refresh(done){ //刷新 this.page=1 this.init(done)},infini...

2019-09-04 16:24:00 175

转载 Input的校验表达式

1、只是不能输入空格<input type="text" onkeyup="this.value=this.value.replace(/^ +| +$/g,'')">2、不能输入空格及英文状态下的逗号<input type="text" onkeyup="this.value=this.value.replace(/[, ]/g,'')"&...

2019-09-04 16:14:00 154

转载 微信小程序下拉加载和上拉刷新两种实现方法

方法一:onPullDownRefresh和onReachBottom方法实现小程序下拉加载和上拉刷新首先要在json文件里设置window属性设置js里onPullDownRefresh和onReachBottom方法下拉加载说明:当处理完数据刷新后,wx.stopPullDownRefresh可以停止当前页面的下拉刷新。onPullDownRefresh...

2019-09-04 15:52:00 163

转载 微信小程序插件组件-Taro UI

微信小程序组件使用以下官网查看 ↓ ↓ ↓https://taro-ui.jd.com/#/docs/fab转载于:https://www.cnblogs.com/wuliujun521/p/11458383.html

2019-09-04 12:26:00 1216

转载 微信小程序HTTP接口请求封装

1.方法封装(新建文件夹util,工具文件,在文件夹下创建request.js文件,用于对方法封装)request.js:var app = getApp();//项目URL相同部分,减轻代码量,同时方便项目迁移//这里因为我是本地调试,所以host不规范,实际上应该是你备案的域名信息var host = 'http://localhost:8081/demo...

2019-09-04 12:25:00 166

转载 微信小程序命名规则

目录分析src是主要的开发目录,各个文件实现功能如下所示:├─.idea│ └─libraries├─.temp├─config└─src ├─assets │ └─images ├─components (公用组件) │ ├─Brandbar │ ├─Selectbar │ ├─S...

2019-09-04 12:08:00 1526

转载 css 文本超出2行就隐藏并且显示省略号

-webkit-line-clamp: 2; //限制两行后...overflow: hidden; //溢出隐藏text-overflow: ellipsis; //设置超出内容为省略号white-space: nowrap; //设置内容不换行首先,要知道css的三条属性。overflow:hidden; //超出的文本隐藏text...

2019-08-15 18:45:00 272

转载 适配手机端rpx像素

<script src="static/js/adaptive.js"></script><script type="text/javascript">// 设计图宽度window['adaptive'].desinWidth = 750;// body 字体大小 会将body字体大小设置为 baseFont / 100...

2019-08-15 18:38:00 403

转载 webpack之proxyTable设置跨域

为什么要使用proxyTable很简单,两个字,跨域。在平时项目的开发环境中,经常会遇到跨域的问题,尤其是使用vue-cli这种脚手架工具开发时,由于项目本身启动本地服务是需要占用一个端口的,所以必然会产生跨域的问题。当然跨域有多种解决方式,这里就不一一例举,下次弄篇文章单独讲,在使用webpack做构建工具的项目中使用proxyTable代理实现跨域是一种比较方便的选择。...

2019-08-15 18:35:00 126

转载 vue报错解决方案

Vue build faild解决办法: https://blog.csdn.net/u011169370/article/details/83346176? jbcmVideo git:(oahcoay) ? npm run build> jbcm_video@1.0.0 build /Users/macbookpro/Downloads/workspace/...

2019-08-15 18:27:00 396

转载 判断是否来自微信内置浏览器还是不是来自微信内置浏览器

function isWeiXin() {var ua = window.navigator.userAgent.toLowerCase();// console.log(ua);//mozilla/5.0 (iphone; cpu iphone os 9_1 like mac os x) applewebkit/601.1.46 (khtml, like gecko)ver...

2019-08-15 18:23:00 233

转载 微信支付

引入js<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>function onBridgeReady(){WeixinJSBridge.invoke('getBrandWCPayRequest',...

2019-08-15 18:22:00 75

转载 Input的校验表达式

1、只是不能输入空格<input type="text" onkeyup="this.value=this.value.replace(/^ +| +$/g,'')">2、不能输入空格及英文状态下的逗号<input type="text" onkeyup="this.value=this.value.replace(/[, ]/g,'')"&gt...

2019-08-15 17:38:00 124

转载 Git使用方法以及出现的bug解决方案

git常用命令1.本地库初始化:git init2.设置签名(1)项目级别(项目里面) git config user.name xxx git config user.email xxx(2)系统级别(所有的项目) git config --global user.name xxx git config --gl...

2019-08-15 17:33:00 226

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除