在调试vue项目的时候,有些地方我需要在页面里临时显示字符串形式的对象,想看看对象内有哪些字段,而不是[object Object],
这时就需要微调一下代码。
[object Object]
<view v-for="item in messageList&q...
yekong
3年前 (2022-04-20)
喜欢
vue项目开发时需要将选择的文件转为base64编码上传,所以需要在el-upload选择文件后,将其转为base64编码
html
<el-upload action="#" :on-change="handleChangeUpload" list-type="pictu...
yekong
3年前 (2022-04-18)
喜欢
vue实现滚动鼠标滑轮,滚动条到底后,触发加载分页,如果有分页数据则加载分页数据,如果没有分页数据则不再触发接口请求。
<div ref="scroll" class="pullup-wrapper hideScrollBar"&g...
yekong
3年前 (2022-04-14)
喜欢
安装命令
npm i better-scroll --save
github地址
github地址
中文文档
中文文档
使用实例文档
使用实例文档
使用实例代码
使用实例代码
...
yekong
3年前 (2022-04-13)
喜欢
效果图
使用插件
npm i better-scroll --save
better-scroll使用文档
代码
<template>
<div class="tabsbody">
<div class="...
yekong
3年前 (2022-04-13)
喜欢
vue项目开发遇到需要部分页面要缓存起来,返回时,需要保持上一个页面跳转前的状态。
路由配置
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const router = new Ro...
yekong
3年前 (2022-04-12)
喜欢
import icons from "@/components/icons";
<icons :type="item.contentType" :is-active="active==index"><...
yekong
3年前 (2022-04-12)
喜欢
vue开发 实现 ppt 在线预览 iframe
/**
* @Author: 858834013@qq.com
* @Name: pptView
* @Date: 2022-04-11
* @Desc:
*/
<template>
<div class=...
yekong
3年前 (2022-04-11)
喜欢
vue开发 实现pdf预览iframe形式
/**
* @Author: 858834013@qq.com
* @Name: pdf
* @Date: 2022-04-11
* @Desc:
*/
<template>
<div class="...
yekong
3年前 (2022-04-11)
喜欢
安装依赖
npm i vue-pdf --save
使用文档
使用文档
实现代码
/**
* @Author: 858834013@qq.com
* @Name: pdf
* @Date: 2022-04-11
* @Desc:
*/
<template>
&...
yekong
3年前 (2022-04-11)
喜欢