4

在 html 上使用 vue, cdn 引入文件后,怎么让 ide 有提示呢

 3 years ago
source link: https://www.v2ex.com/t/808100
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
在 html 上使用 vue, cdn 引入文件后,怎么让 ide 有提示呢

V2EX  ›  Vue.js

在 html 上使用 vue, cdn 引入文件后,怎么让 ide 有提示呢

  zxCoder · 15 小时 28 分钟前 · 422 次点击

https://v3.cn.vuejs.org/guide/installation.html#cdn

按文档写的引入这个文件,然后现在 WebStorm 提示不了,还需要引入什么文件吗

4 条回复    2021-10-16 00:48:48 +08:00

raiz

raiz   15 小时 22 分钟前

开发阶段直接本地引用?

mxT52CRuqR6o5

mxT52CRuqR6o5   15 小时 20 分钟前 via Android

写个.d.ts 文件声明一下 cdn 引入文件在全局空间注入的东西类型就好了

mxT52CRuqR6o5

mxT52CRuqR6o5   15 小时 20 分钟前 via Android

需要 npm install @types/vue 之类的东西

dengshen

dengshen   10 小时 15 分钟前 via iPhone

webstorm 有个库功能。在里面下载 vue 就好了

关于   ·   帮助文档   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   2135 人在线   最高记录 5497   ·  

创意工作者们的社区

World is powered by solitude

VERSION: 3.9.8.5 · 25ms · UTC 03:04 · PVG 11:04 · LAX 20:04 · JFK 23:04
♥ Do have faith in what you're doing.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK