【发布时间】:2020-02-21 13:45:36
【问题描述】:
a.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script src="a.js" type="text/javascript"></script>
<script src="b.js" type="text/javascript"></script>
</body>
</html>
a.js
function a() {
console.log("hi")
}
b.js
a();
console.log("done")
在 b.js 中,我想“去定义”到 a.js。
在实际项目中,有很多脚本。
有可能吗?除非打开所有 javascript 文件,否则我该怎么做。
【问题讨论】:
标签: javascript visual-studio-code