会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
假装学习
博客园
首页
新随笔
管理
随笔分类 -
vue
1
2
下一页
数组处理 reduce() 数组的归并方法
摘要:1. 获取数组的最小元素 const getSmallest = (arr) => arr.reduce((smallest, num) => Math.min(smallest, num)); const arr = [13, 7, 11, 3, 9, 15, 17]; console.log(g
阅读全文
posted @
2022-12-28 10:39
假装学习
阅读(79)
评论(0)
推荐(0)
vue3 input 控制小数位 自定义指令
摘要:创建 文件 global index.ts main.ts文件引入 import global from "@/global"; app.use(global) index.ts 内容 import { App } from "vue";export default (app: App) => {
阅读全文
posted @
2022-12-06 16:31
假装学习
阅读(1025)
评论(0)
推荐(0)
nui app sunui-upimg 上传图片,原文件显示问题与压缩问题
摘要:vue nui app sunui-upimg 上传图片 压缩图片sizeType: ["compressed"], 只有小程序-app才有效果 chooseImage() { let _self = this; uni.chooseImage({ count: _self.upload_count
阅读全文
posted @
2020-12-10 17:44
假装学习
阅读(719)
评论(0)
推荐(0)
You have not concluded your merge (MERGE_HEAD exists)
摘要:You have not concluded your merge (MERGE_HEAD exists) 引发以上问题的因为是,合并A分支的时候,发现出现大量冲突并,拉错了分支,把所有的代码放弃更改后重新拉取时,git pull 出现的 解决办法:中止合并 git merge --abort再重新
阅读全文
posted @
2020-11-16 18:46
假装学习
阅读(392)
评论(0)
推荐(0)
h5 百度获取地址
摘要:vue+unipp(h5) 获取省市区地址 baduMap.js 异步加载 export default { init: function () { const AK = "***"; const BMap_URL = 'https://api.map.baidu.com/api?v=2.0&ak=
阅读全文
posted @
2020-11-05 09:44
假装学习
阅读(250)
评论(0)
推荐(0)
Vue Cli项目使用PDF.js预览pdf无法访问到viewer.html
摘要:pdf->build,web(viewer)应该放在static pdf组件 <template> <view class="content u-padding-0"> <iframe width="100%" frameborder="0" scrolling="no" style="width:
阅读全文
posted @
2020-10-12 13:58
假装学习
阅读(1878)
评论(0)
推荐(0)
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead...
摘要:Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property
阅读全文
posted @
2020-09-15 15:56
假装学习
阅读(706)
评论(0)
推荐(0)
VUE ES6转ES5,(ios 10.2版本,白屏,猜想es6语法原因)
摘要:npm install --save-dev babel-polyfill main.js引入 import "babel-polyfill" vue.config.js module.exports = { configureWebpack: { entry: { app: ["babel-pol
阅读全文
posted @
2020-08-24 18:40
假装学习
阅读(400)
评论(0)
推荐(0)
Vue+element-ui Upload 的http-request自定义上传文件
摘要:<el-upload ref="upload" :action="''" :on-change="changeResult" :http-request="requestUpload" :before-upload="beforeExcelUpload" :show-file-list="false
阅读全文
posted @
2020-08-20 18:18
假装学习
阅读(2863)
评论(0)
推荐(0)
vuejs中如何动态拼接生成字段名
摘要:var obj = {}; this.selectData.forEach((item, index) => { var str = 'model_' + index + '_#profit_item_id'; var str2 = 'model_' + index + '_#agent_id';
阅读全文
posted @
2020-08-20 14:56
假装学习
阅读(2865)
评论(0)
推荐(0)
el-cascader 使用
摘要:提示: 更新element版本问题,样式问题, 放在el-dialog内样式问题 等等 页面 <el-form-item label="地域限制:"> <el-cascader v-model="cascader" :options="cascaderOptions" :props="{ multi
阅读全文
posted @
2020-07-29 16:29
假装学习
阅读(3773)
评论(0)
推荐(0)
vue 查询参数修改但页面没渲染,值已改变
摘要:详情页面 路由上带了参数并赋值展示成功, 这个由路由上带的参数修改时,页面没渲染,值已改变, 如果此时去做别的不是路由赋值的参数修改,前面做的修改就刷新出来渲染成功 原代码 this.crud.query.bankId =""; this.crud.query.batchNo =""; this.$
阅读全文
posted @
2020-07-23 14:11
假装学习
阅读(1072)
评论(0)
推荐(0)
scroll-view 滚动在安卓机无效,在ios可以
摘要:<scroll-view class="VerticalNav nav" scroll-y scroll-with-animation :scroll-top="verticalNavTop" style > <view class="cu-item" :class="item.id == sele
阅读全文
posted @
2020-07-20 14:18
假装学习
阅读(683)
评论(0)
推荐(0)
vue动态路由加载组件,找不到module
摘要:export const loadView = (view) => { return () => require(`@/views/${view}`) } 改为 export const loadView = (view) => { return (resolve) => require([`@/v
阅读全文
posted @
2020-07-09 14:31
假装学习
阅读(1898)
评论(0)
推荐(0)
html2canvas,html2canvas截取图片,html2canvas快照,vue html2canvas快照,vue使用html2canvas截图
摘要:页面截图,快照vue使用 第一步 npm install html2canvas 第二步 在使用的页面引入 import html2canvas from 'html2canvas'; 页面 截图内容外框 id nodeBox <template> <div class="app-container
阅读全文
posted @
2020-07-09 14:22
假装学习
阅读(535)
评论(0)
推荐(0)
uni app +vue 引用 百度地图API取位置,VUE用百度地图获取当前位置(城市)
摘要:uni app +vue 引用 百度地图API取位置,VUE用百度地图获取当前位置(城市) 1.在index.html 引入 百度js <script src="http://api.map.baidu.com/api?v=2.0&ak=你的密钥" type="text/javascript"></
阅读全文
posted @
2020-06-17 09:55
假装学习
阅读(9037)
评论(0)
推荐(0)
vuedraggable 拖拽 应用 不同列表之间的拖拽
摘要:vuedraggable 拖拽 应用 不同列表之间的拖拽 npm install vuedraggablemain.js 文件 import VueDraggable from 'vuedraggable'; Vue.use(VueDraggable); <template> <div> <el-r
阅读全文
posted @
2020-03-17 14:12
假装学习
阅读(2138)
评论(0)
推荐(0)
vue项目图片上传 vant van-uploader 图片上传
摘要:vant van-uploader 图片上传 <van-uploader accept="image/*" v-model="fileList" multiple :after-read="afterRead"></van-uploader> afterRead: function(file) {
阅读全文
posted @
2020-03-12 10:09
假装学习
阅读(9835)
评论(1)
推荐(0)
vsCode eslint各种提示 快速解决方案
摘要:1.vsCode 安装扩展 ESLint 2. 项目中 .eslintrc.js 配置 module.exports = { root: true, env: { node: true }, 'extends': [ 'plugin:vue/essential', 'eslint:recommend
阅读全文
posted @
2020-03-02 17:19
假装学习
阅读(3511)
评论(0)
推荐(0)
element-ui css 文件加载 失败(https://unpkg.com/element-ui/lib/theme-chalk/index.css,加载失败)
摘要:在main.js文件引入 import Vue from 'vue'; import Element from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; Vue.use(Element, { size: 'small',
阅读全文
posted @
2019-12-24 16:36
假装学习
阅读(6946)
评论(0)
推荐(0)
1
2
下一页
公告