logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Component template should contain exactly one root element. If you are using v-if on multiple elemen

上面的提示大概意思就是:vue模板智能有一个跟对象这和个是错误的写法这个是正确的写法(模板内的标签只能被一个标签所包含)

error: failed to push some refs to 'git@github.com:jack-don/elema_vue.git' hint: Updates were reject

error: failed to push some refs to ‘git@github.com:jack-don/elema_vue.git’hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by a

#git
[Vue warn]: Do not use built-in or reserved HTML elements as component id:

是因为这里的name用了'title'导致的改成其他的名就可以了

vue组件中的反斜杠作用

正常情况下:var htmlString = '<div>this is a string</div>';下面写法是不对的var htmlString = '<div>this is a string</div>';但是一些时候我们希望像上面这种写法,可读性更高所以要进行转义处理var

Component template should contain exactly one root element. If you are using v-if on multiple elemen

上面的提示大概意思就是:vue模板智能有一个跟对象这和个是错误的写法这个是正确的写法(模板内的标签只能被一个标签所包含)

vue项目打包之后index.html页面没有显示内容

 Tip: built files are meant to be served over an HTTP server.  Opening index.html over file:// won't work.解决:更改config/index.js 中的参数assetsPublicPath:'./',加完之后在打包

vue:command not found

发生在全局安装完vue-cli之后执行vue命令的时候。原因是因为没有把vue-init挂到系统的环境变量下。

* !!vue-style-loader!css-loader?{"sourceMap":true}!../../node_modules/vue-loader/lib/style-compiler/

 当前目录(项目)下:  cnpm install stylus-loader css-loader style-loader --save-dev cnpm run dev 。

到底了