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

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

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文件"scripts": { "serve": &q

Three.js使用

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

JS常用操作

1、格式化日期时间function getCurrentDate(format = 2) { var now = new Date(); var year = now.getFullYear(); //得到年份 var month = now.getMonth();//得到月份 var date = now.getDate();//得到日期