logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue中表单验证数据总是undefined

注意变量名称的对应

【vue】子组件跟父组件通信this.$emit()的使用

父组件:<template><addcz @closecz="closecz"></addcz></template><script>export default {  components: {   addcz },methods: {closecz(){...

【vue】TypeScript 错误“property does not exist on value of type”

最简单的解决方式是:加 as anyeg:y.x报错,则改为(y as any).x暴露全局变量src下新建文件shime-vue.d.tsdeclare module 'nprogress';declare module 'axios' {interface AxiosInstance {(config: AxiosRequestConfig): Promise<any>}}...

vue中使用style lang="scss"报错(配置sass

cnpm install sass-loader@7.3.1 --save-devcnpm install node-sass --save然后在webpack.base.conf.js的module中添加相关配置:{test: /\.s[a|c]ss$/,loader: 'style!css!sass'}

【vue】插件vue-print-nb实现前端打印当前页面功能

1.安装官方安装及使用文档:https://www.npmjs.com/package/vue-print-nbnpm install vue-print-nb --save2.main.js中全局引入import Print from 'vue-print-nb'Vue.use(Print);3.页面中使用3.1.使用id<div id="printMe" ><p>打印内

【ts】vue中使用ts进行父子组件传值

子传父父组件<template><div class="hello">{{str}}<Home @hello="onClick"/></div></template><script lang="ts">import {Vue,Component} from 'vue-property-decorator'//引入子组件,在中C

【vue】for循环里嵌套了异步请求如何使它执行完了再执行下面代码

async updateGood(state) {for (let i = 0; i < this.file.length; i++) {//MVP: awaitawait this.uploadImg(this.file[i]);}console.log(this.oldPhoto.concat(this.imgName));const res = await updateBasicsPr

解决vue项目路由出现message: "Navigating to current location (XXX) is not allowed"的问题

原因:在路由中添加了相同的路由。解决:重写路由的push方法在src/router/index.js 里面import Router from 'vue-router'下面写入下面方法即可/*** 重写路由的push方法*/const routerPush = Router.prototype.pushRouter.prototype.push = function push(...

【git】急速上手git

创建版本库先在文稿-github那里建好项目文件夹然后进入那个文件夹git init上传

#git
关于js-cookie

说明js-cookie是一个简单的,轻量级的处理cookies的js API。API创建//创建简单的cookieCookies.set('name', 'value');//创建有效期为7天的cookieCookies.set('name', 'value', { expires: 7 });//为当前页创建有效期7天的cookieCookies.set('name', 'va...

    共 13 条
  • 1
  • 2
  • 请选择