摘要: 在app文件夹下新建一个comment文件夹,并创建CommentBox.js CommentBox.js 'use strict'; import React from 'react'; class CommentBox extends React.Component{ render() { re 阅读全文
posted @ 2018-01-22 22:31 journeyIT 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 使用命令 jspm install react 进行安装 使用命令 jspm install react-dom 安装 react-dom 使用命令 jspm install semantic-ui 进行 semantic-ui样式的安装(不是必须) 使用 jspm install css 进行插件 阅读全文
posted @ 2018-01-22 21:48 journeyIT 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 一、创建vue项目 通过命令 cnpm install vue 获得如图所示的结构项目 二、创建component 在components文件夹下新建hcharts.vue文件和echarts.vue hchart.vue <template> <el-col :span="24"> <div :i 阅读全文
posted @ 2018-01-22 14:02 journeyIT 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1.在搭建vue脚手架时提示是否启用eslint检测的。 Use ESLint to lint your code? 写 no; 2.如果项目已经生成,我们可以这样。 在项目中代开 bulid 文件夹下的 webpack.base.config.js 文件。将以下代码删掉或注销: { test: / 阅读全文
posted @ 2018-01-22 08:55 journeyIT 阅读(10) 评论(0) 推荐(0) 编辑