随笔分类 - 前端
摘要:1、持续集成及Jenkins介绍 2、Jenkins安装和持续集成环境配置 3、Jenkins构建Maven项目 4、Jenkins+Docker+SpringCloud微服务持续集成 5、基于Kubernetes/K8S构建Jenkins微服务持续集成平台
阅读全文
摘要:const { getFieldDecorator, getFieldValue, setFieldsValue, resetFields, validateFields, getFieldError } = this.props.form; getFieldDecorator: 用于和表单进行双向
阅读全文
摘要:webpack环境安装 全局环境安装 npm install webpack-cli -g npm install webpack -g mac上安装webpack报错解决方法Hit error EACCES: permission denied, mkdir '/usr/local/lib/nod
阅读全文
摘要:小程序开发公众平台地址链接:https://developers.weixin.qq.com/miniprogram/introduction/index.html?t=19042217 环境配置 全局配置 对应文件:app.json 注册 pages window tabBar networkTi
阅读全文
摘要:可以使用path 和 name 来进行页面的跳转 this.router.push(path:′/inspection/inspectionRegister′,query:item)this.router.push({ name: 'inspectionRegister'
阅读全文
摘要:由于公司最近在做的项目,涉及App的开发,正好前段时间有研究过vue 和 react native 正好可以在此派上用场。 整个APP应用 采用 远程的Android WebViwe 内嵌 H5页面 方式进行开发 ,所以 H5页面采用 基于vue 和 ionic 的 vux框架 进行开发 (过程中遇
阅读全文
摘要:theme = { // 全图默认背景 // backgroundColor: ‘rgba(0,0,0,0)’, // 默认色板 color: ['#ff7f50','#87cefa','#da70d6','#32cd32','#6495ed', '#ff69b4','#ba55d3','#cd5c
阅读全文
摘要:一、安装 dva-cli cnpm install dva-cli -g 二、创建应用 dva new dva-project 三、启动应用 cd dva-project npm start 四、安装并使用antd cnpm install antd babel-plugin-import --sa
阅读全文
摘要:let createIterator = items =>{ let i = 0; return { next () { let done = (i >= items.length); let value = !done ? items[i++] : undefined; return { done
阅读全文
摘要:'use strict' import 'semantic-ui/semantic.min.css!'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; // import { Router, R
阅读全文
摘要:打开CommentBox.js 修改handleCommentSubmit方法 handleCommentSubmit(comment){ // console.log(comment); let comments = this.state.data, newComments = comments.
阅读全文
摘要:儿子将获取到的数据提交给父亲 打开CommentBox.js 我们在CommentForm标签上添加onCommentSubmit={this.handleCommentSubmit} 创建handleCommentSubmit方法 handleCommentSubmit(comment){ con
阅读全文
摘要:在input和textarea标签上使用ref属性 <input type="text" placeholder="姓名" ref="author"/> <textarea placeholder="评论" ref="text"></textarea> 在onSubmit={this.handleS
阅读全文
摘要:事件处理函数的使用 鼠标事件: onClick onContextMenu onDoubleClick onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onDrop onDrag o
阅读全文
摘要:修改main.js CommentBox标签 <CommentBox url="app/comments.json"/>,document.getElementById('app') 在 app 文件夹下 新建 comments,json 文件 [ {"author": "journey" , "d
阅读全文
摘要:打开main.js 添加一些模拟数据 var comments = [ {"author": "journey" , "date" : "3分钟前" , "text" : "今天天气有点冷!"}, {"author": "jim" , "date" : "5分钟前" , "text" : "今天早上
阅读全文
摘要:在comment文件夹下新建Comment.js Comment.js 'use strict' import React from 'react'; class Comment extends React.Component{ render(){ return ( <div className="
阅读全文
摘要:在app下的comment文件夹下面分别新建CommentList.js 和 CommentForm.js CommentList.js 'use strict' import React from 'react'; class CommentList extends React.Component
阅读全文
摘要:在app文件夹下新建一个comment文件夹,并创建CommentBox.js CommentBox.js 'use strict'; import React from 'react'; class CommentBox extends React.Component{ render() { re
阅读全文
摘要:使用命令 jspm install react 进行安装 使用命令 jspm install react-dom 安装 react-dom 使用命令 jspm install semantic-ui 进行 semantic-ui样式的安装(不是必须) 使用 jspm install css 进行插件
阅读全文