声明:本站文章均为作者个人原创,图片均为实际截图。如有需要请收藏网站,禁止转载,谢谢配合!!!

js使用mysql数据库

1、安装mysqlnpm install --save mysql2、配置config.jsconst mysql = require('mysql')const client = mysql.createConnection({ host: 'localhost', user: 'ba

Editor.md基本使用和图片上传

editor.md是一款markdown编辑器官网 https://pandao.github.io/editor.md/1、代码<!DOCTYPE html><html lang="zh"> <head> <meta charset=

七牛图片imageView2基本处理

使用七牛图片imageView2基本处理https://developer.qiniu.com/dora/1279/basic-processing-images-imageview2例如:https://cdn.abc.com/1.png?imageView2/0/w/200/0/w/<LongEdge>/h/<ShortEdge>

egg.js的使用

1、创建egg.js脚手架示例项目使用npm创建egg.js脚手架示例项目 npm init egg --type=simple --registry=china使用npx创建egg.js脚手架示例项目npx create-egg使用yarn创建egg.js脚手架示例项目yarn create egg --type=simple --registry=chinanpm@6 版本引入了 npm

react使用redux

文件结构:count index.jsstore index.js reducer.js state.js actionCreator.js普通用法:redux安装reduxnpm install --save redux1、store/state.js定义状态export default { num: 1}2、st

react中classnames使用

1、安装npm install classnames --save2、使用c1默认存在,c2动态存在<script>import classNames from "classnames";</script><div className={classNames(&a