会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
假装学习
博客园
首页
新随笔
管理
随笔- 65 文章- 0 评论- 3 阅读-
12万
随笔分类 -
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
假装学习
阅读(71)
评论(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
假装学习
阅读(939)
评论(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
假装学习
阅读(657)
评论(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
假装学习
阅读(368)
评论(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
假装学习
阅读(204)
评论(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
假装学习
阅读(1813)
评论(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
假装学习
阅读(663)
评论(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
假装学习
阅读(390)
评论(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
假装学习
阅读(2828)
评论(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
假装学习
阅读(2821)
评论(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
假装学习
阅读(3718)
评论(0)
推荐(0)
编辑
vue 查询参数修改但页面没渲染,值已改变
摘要:详情页面 路由上带了参数并赋值展示成功, 这个由路由上带的参数修改时,页面没渲染,值已改变, 如果此时去做别的不是路由赋值的参数修改,前面做的修改就刷新出来渲染成功 原代码 this.crud.query.bankId =""; this.crud.query.batchNo =""; this.$
阅读全文
posted @
2020-07-23 14:11
假装学习
阅读(1050)
评论(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
假装学习
阅读(664)
评论(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
假装学习
阅读(1878)
评论(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
假装学习
阅读(524)
评论(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
假装学习
阅读(8932)
评论(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
假装学习
阅读(2092)
评论(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
假装学习
阅读(9744)
评论(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
假装学习
阅读(3490)
评论(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
假装学习
阅读(6822)
评论(0)
推荐(0)
编辑
1
2
下一页
公告
昵称:
假装学习
园龄:
8年7个月
粉丝:
4
关注:
3
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
更多链接
我的标签
vue3自定义指令
(2)
html5移动端
(2)
css3
(2)
动画
(2)
百度地图获取当前位置
(2)
更多
随笔分类
angular(2)
css(6)
HTML(4)
html5(10)
JavaScript(20)
vue(28)
调试(3)
小程序(4)
正则(3)
更多
随笔档案
2023年6月(2)
2023年2月(3)
2022年12月(2)
2020年12月(1)
2020年11月(3)
2020年10月(1)
2020年9月(1)
2020年8月(3)
2020年7月(7)
2020年6月(3)
2020年4月(3)
2020年3月(4)
2019年12月(6)
2019年11月(2)
2019年9月(3)
2019年8月(5)
2019年7月(4)
2019年6月(1)
2019年5月(2)
2019年3月(3)
2018年11月(1)
2018年8月(2)
2018年7月(3)
更多
阅读排行榜
1. js 时间格式换成 把字符串(yyyymmdd)转换成日期格式(yyyy-mm-dd)记录(13033)
2. vue项目图片上传 vant van-uploader 图片上传(9744)
3. uni app +vue 引用 百度地图API取位置,VUE用百度地图获取当前位置(城市)(8932)
4. Vue打包后放到服务器出现Loading chunk {n} failed 错误(8577)
5. element-ui css 文件加载 失败(https://unpkg.com/element-ui/lib/theme-chalk/index.css,加载失败)(6822)
6. 小程序与HTML5的区别(4661)
7. js保存图片到手机相册(4489)
8. Telerik Fiddler 应用方法(4051)
9. el-cascader 使用 (3718)
10. vsCode eslint各种提示 快速解决方案(3490)
评论排行榜
1. vue项目图片上传 vant van-uploader 图片上传(1)
2. 弹性FLEX布局(1)
3. sdk uncaught third Error Cannot assign to read only property 'constructor' of object '#<V>' (小程序)(1)
最新评论
1. Re: vue项目图片上传 vant van-uploader 图片上传
外层套 循环 上传控件, 上传的时候 赋值到数组,冲突怎么办
--十色鹿
2. Re:sdk uncaught third Error Cannot assign to read only property 'constructor' of object '#<V>' (小程序)
我也遇到这个坑了,有update吗..
--lh0768
3. Re:弹性FLEX布局
博主有心了,收藏一下
--快活王
点击右上角即可分享