遇到的问题
一只前端小菜鸟~
有大量前端HC,base:杭州、东莞、成都、西安都可,感兴趣可以添加scum__peace
展开
-
JavaScript实现进制相互转换
/ 自定义进制转换函数// 其他进制转换成十进制// 十进制转换成其他进制// 使用自定义函数进行转换// 二进制// 二进制 转换为 十六进制// 输出 "2a"原创 2024-06-03 22:33:51 · 400 阅读 · 3 评论 -
'scope' is defined but never used.
scope这个属性被最新vue已经弃用了,升级成slot-scope了 ,修改为:原创 2018-08-25 23:08:48 · 12506 阅读 · 2 评论 -
vscode开发工具,vue的v-for会报错
Vue 2.2 之后,要求 component 进行列表渲染时,必须指定 key,因此这里可能是 vscode 的一个误报(tr 不是 component),如果不想看到这样的提示,你可以绑定一个 key:<tr v-for="(word,index) in list" :key="index">修改之后: ...原创 2018-08-25 23:00:57 · 674 阅读 · 0 评论 -
Missing space before value for key 'components'
原创 2018-08-25 22:57:25 · 28581 阅读 · 6 评论 -
安装了Vetur之后的配置
VSCode本身自带了Emmet,能够通过Tab键对HTML5的代码进行快速开发,不过,VSCode中需要修改Emmet配置才能对Vue进行支持。打开文件->首选项->设置,就会进入到 settings.json 文件中,在左侧是VSCode默认的配置,在窗口右侧就可以进行一系列的配置:右侧写入:{ // 强制单引号 "prettier.singleQuote": tru...原创 2018-08-25 23:02:16 · 20234 阅读 · 1 评论 -
Vue报错——“Trailing spaces not allowed”
在VSCode中开发Vue 报错:“Trailing spaces not allowed”这是空格多了,删除多余的空格就可以了删除空格后,运行正确;原创 2018-08-24 16:18:48 · 131461 阅读 · 6 评论