摘要: 在ts编程中,methods发生了变化 从原来的: export default { methods:{ func(){ console.log("23") } } } 变成了: export default class App extends Vue { func(){ console.log(" 阅读全文
posted @ 2021-10-22 15:42 奔跑的哈密瓜 阅读(916) 评论(0) 推荐(0) 编辑
摘要: 当我们在安装vue脚手架的时候一不小心选择安装了严格模式,在使用时会很不方便,解决方案很简单 找到目录文件对指定行注掉就可以了 阅读全文
posted @ 2021-10-22 15:26 奔跑的哈密瓜 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 这是因为当前版本与4.0.0不兼容 卸载当前版本sass: npm uninstall node-sass 安装指定版本sass: npm install node-sass@4.14.1 阅读全文
posted @ 2021-10-22 15:19 奔跑的哈密瓜 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 这篇文章中写的特别详细,留下地址 https://www.cnblogs.com/wisewrong/p/8570309.html 阅读全文
posted @ 2021-10-22 15:16 奔跑的哈密瓜 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 在vue运行时出现这种错误,这是因为在<template></template>包含的代码中出现空格导致的,检查代码去掉空格就可以了 阅读全文
posted @ 2021-10-22 14:48 奔跑的哈密瓜 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 1、在系统搜索框中 输入 Windos PowerShell 2、点击“管理员身份运行” 3、输入“ set-ExecutionPolicy RemoteSigned”回车 4、之后输入A,回车 5、再次回到项目中执行cnpm -v,执行成功。 阅读全文
posted @ 2021-10-22 14:38 奔跑的哈密瓜 阅读(685) 评论(0) 推荐(0) 编辑