写一个vue2项目模板
时间: 2023-10-20 14:11:28 浏览: 37
好的,以下是一个简单的Vue2项目模板:
```
<template>
<div>
<h1>Hello, World!</h1>
<p>Current time: {{ currentTime }}</p>
</div>
</template>
<script>
export default {
data() {
return {
currentTime: new Date().toLocaleString(),
};
},
};
</script>
```
这个模板包括了一个简单的Vue组件,用于显示当前的时间。你可以将这个模板用作新的Vue2项目的起点,然后根据自己的需求进行修改和扩展。希望这能对你有所帮助!