03 2022 档案
摘要:一、代码 import VueResource from 'vue-resource' Vue.use(VueResource) //网络请求拦截器 Vue.http.interceptors.push(function(request, next){ //设置请求地址 request.url =
阅读全文
摘要:一、随笔 Vue3 之hooks 使用详解教程 Vue3 之ref与reactive的区别 Vue 之混入(mixin)详细介绍 Vue 之filter过滤器 Vue 之vue-ueditor-wrap自定义按钮 Vue 之vue-resource拦截器使用 Vue 之使用Base64 Vue 之使
阅读全文
摘要:一、安装与使用 npm install --save js-base64 let Base64 = require('js-base64').Base64; Base64.encode(''); // 加密 Base64.decode(''); // 解密
阅读全文
摘要:一、安装与使用 npm install vue-cookies 在main.js中引入cookies import Vue from 'vue' import VueCookies from 'vue-cookies' Vue.use(VueCookies) 二、基本API 1、设置全局配置,设置c
阅读全文
摘要:一、功能 WeixinJSBridge.call('closeWindow'); //关闭当前页面 WeixinJSBridge.call('hideToolbar'); //隐藏右下面工具栏 WeixinJSBridge.call('showToolbar'); //显示右下面工具栏 Weixin
阅读全文
摘要:更新说明 2022-03-17 新增上传图片、视频、文件组件 一、效果图 演示:https://yangsphp.github.io/vue-admin/index.html 二、源码 下载:https://gitee.com/yang1015/vue-admin
阅读全文
摘要:一、说明 $on:监听事件 $emit:触发监听事件 二、代码 1、本页面 <template> <section> <h1>left</h1> <el-button type="primary" @click="isClick">点击</el-button> </section> </templa
阅读全文
摘要:下载地址:https://github.com/yangsphp/contract-master 一、效果图
阅读全文
摘要:一、查找 打开viewer.js 搜索 setTitleUsingUrl定位到代码如图位置 二、修改 setTitleUsingUrl: function pdfViewSetTitleUsingUrl(url) { this.url = url; try { this.setTitle((TITL
阅读全文
摘要:一、效果图 二、代码 1、1.1.9版本 https://gitee.com/yang1015/pdf-reader 使用:viewer.html中 2、pdfjs-2.5.207版本 https://gitee.com/yang1015/pdf-reader2 使用:http://localhos
阅读全文