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

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

七牛图片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>

宝塔面板一个网站绑定两个域名配置SSL

宝塔面板一个网站绑定两个以上的域名配置SSL1、比如a.com b.com c.com 同时绑定一个网站2、申请证书,获取pem、key3、开启a.com 的ssl4、点击左侧配置文件<VirtualHost *:80> ServerAdmin webmaster@example.com DocumentRoot "/www/wwwroot/test.com/publ

Three.js使用

threejs 通过封装WEBGL API 实现了在网页端直接进行三维3d模型渲染。应用场景包括:小游戏,在线展厅,DIY 互动等现代互联网应用,极具发展前景。three.js就是使用javascript 来写3D程序。在浏览器端,WebGL 是一个底层的标准,在这些标准被定义之后,Chrome、Firefox之类的浏览器实现了这些标准。然后,就能通过 JavaScript 代码,在网页上实现三

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

editor.md是一款markdown编辑器官网 https://pandao.github.io/editor.md/1、代码&lt;!DOCTYPE html&gt;&lt;html lang=&quot;zh&quot;&gt; &lt;head&gt; &lt;meta charset=

js使用mysql数据库

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

vue开发、生产环境package.json配置启动命令

1、根目录新建.env.dev文件NODE_ENV=developmentBASE_API_URL=http://127.0.0.1:8080/apiBASE_IMG_URL=http://static.cdn.com2、修改package.json文件&quot;scripts&quot;: { &quot;serve&quot;: &q