代码拉取完成,页面将自动刷新
学习vue框架 使用npm全局安装vue-cli(npm install -g vue-cli) vue-cli vue脚手架具体详细步骤解说 https://www.jianshu.com/p/2769efeaa10a 在当前目录中启动网页服务(php):在目录中进入命令行窗口,输入php -S localhost:8080(就相当于给当前目录或工程配置域名)
first vue project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
# install sweetalert
npm install --save sweetalert
import swal from 'sweetalert'
swal("hello world!")
For detailed explanation on how things work, checkout the guide and docs for vue-loader.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。