Failed to mount component: template or render function not defined.
vue在编写vue时出现Failed to mount component: template or render function not defined.其原因是,在创建** .vue **文件时没有在文件中添加<template>内容 </template>而导致无法引用该文件。所以一定注意:创建.vue文件时,注意一定要写入 <template>内容 </template>即便是没有任何内容,也要写请养成好习惯...