因为有 template 选项会优先使用template 而不是 el 选项 生成模板,teamplate 有两种定义方式,一种是 domNode,一种是 string,string可以传入两种,一种是 domString,另一种是 id 选择器。如果使用 domString,使用完整版构建没有任何问题,如果使用 id 选择器,而对应的 teamplate 的 innerHTML 正好为 空,则不会生成 render 函数,如果没有图中标注的条件判断,则会抛出“You are using the runtime-only build...”的错误,即使当前正在使用的是独立构建版本。