09 2018 档案
摘要:const CryptoJS = require('crypto-js'); //引用AES源码js const key = CryptoJS.enc.Utf8.parse("1234123412ABCDEF"); //十六位十六进制数作为密钥 const iv = CryptoJS.enc.Utf
阅读全文
摘要:1.安装java环境,配置环境变量 2.下载gitBlit 链接:https://pan.baidu.com/s/107qVvSS8TmTH8NDzREqu7g 提取码:4l2s 这是免安装的文件夹,可以直接在上面搭建基于gitblit的git服务器 1) 进入目录:D:\gitblit-1.8.0
阅读全文
摘要:删除隐藏的.git文件 0.git init 1.git add. 2.git commit -m "添加项目" 3.git remote rm origin 4.git remote add origin http://zhuxiuwu@192.168.10.86:10101/r/vue/zhdj
阅读全文
摘要:查询用户名及邮箱 $ git config user.name $ git config user.email 设置用户名及邮箱 $ git config --global user.name "xxx" $ git config --global user.email "xxx" 修改远程仓库路径
阅读全文
摘要:class B { constructor (){ console.log('boonook'); } } let b = new B(); b.constructor B.prototype.constructor // true//// 等同于 //装饰器
阅读全文
摘要:const _arr = [1, 2, 3, 4, 5, 5, 5, 5];console.log(..._arr);//解构console.log(new Set(_arr));//去重值是唯一的 /// console.log([...new Set(_arr)])//去重值是唯一的
阅读全文
摘要:///组件生命周期 挂载到html文档中//this.$watch可以下载mounted和update这种但是不能在methods中 mounted () { this.$watch('value.show',newValue=>{ if (newValue){ this.value.formDat
阅读全文
摘要:beforeCreate(创建前) created(创建后) beforeMount(载入前) mounted(载入后) beforeUpdate(更新前) updated(更新后) beforeDestroy(销毁前) destroyed(销毁后) computed:{/****实现某一属性的实时
阅读全文
摘要:1.constructor():构造函数 执行时间:组件被加载前最先调用,并且仅调用一次 作用:定义状态机变量 注意:第一个语句必须是super(props),正确定义状态机代码如下 constructor(props) { super(props); this.state = { content:
阅读全文
摘要:方法有三种: 1.修改命令 git remote set-url origin [url] 例如: git remote set-url origin https://github.com/boonook/react-native.git 2.先删后加 git remote rm origin gi
阅读全文
摘要:getIdss(node, id, path){ if (!path) { path = [] } if (node.id id) { return path } path.push(node); if (node.item.some(child => this.getIdss(child, id,
阅读全文
摘要:digui(){ this.$Request.get('api/groups/tree', {}).then(res => { if (res && res.code 0) { if (Array.isArray(res.data)) { this.treeData = res.data.map(o
阅读全文
摘要:https://blog.csdn.net/m0_37452696/article/details/78370504 继承特性1 - 实例成员继承 通过extends关键字实现继承 如果子类有构造器, 必须添加super()调用父类构造器 继承后子类实例便可使用父类实例的属性与方法 class An
阅读全文
摘要:静态方法 静态方法属于类自己,通过类名.方法名调用 注意这里static关键字只能作用于方法,不能作用于属性 class Person { constructor() { Person.total++ || (Person.total = 1); }; // 统计总人口, static getTot
阅读全文
摘要:import React, { Component } from 'react';import logo from './logo.svg';import './App.css';import 'antd/dist/antd.css';// import DatePicker from 'antd/
阅读全文
摘要:1.安装npm install axios 2.在package.json下添加
阅读全文
摘要:Promise.all([this.$Request.get('api/voteRecord/list',params), this.$Request.get('api/voteMember/list',params)]).then(res=>{ if (res && res[0].code==0
阅读全文
摘要:import React, {Component} from 'react'; export default class Parent extends Component { render() { return( <div> <Child onRef={this.onRef} /> <button
阅读全文
摘要:import React, { Component } from 'react';import { Button } from 'antd';import cookie from 'react-cookies'class Cookie extends Component { constructor(
阅读全文
摘要:import React, { Component } from 'react';import { BrowserRouter as Router, Route, Link, Switch, Redirect} from 'react-router-dom';import About from '.
阅读全文
摘要:在你项目所在的文件里运行 git add git commit git pull git push 就可以推送到仓库了
阅读全文
摘要:1.npm run eject 2.npm install mobx mobx-react --save 3.npm install --save-dev babel-plugin-transform-decorators-legacy 4.npm install babel-core babel-
阅读全文

浙公网安备 33010602011771号