摘要:
const express =require('express') const path=require('path') const template=require('art-template') const app =express() //设置模板引 ,view文件 art后缀 app.set('view engine','art') //使用express兼容art-template模板引 阅读全文
摘要:
创建public文件夹放入html文件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> </html><!DOCTYPE html> <html lang=" 阅读全文
摘要:
// 路由,(根据请求路径和请求方式进行路径的分发处理) // http 的常用请求方式 // post 添加 // get 查询 // put 更新 // delete 删除 // restful api (一种url的格式) const express =require('express'); const app=express(); // ap... 阅读全文
摘要:
const express =require('express'); const app=express(); //实现静态资源服务 let server=app.use(express.static('public')); server.listen(3000,()=>{ console.log( 阅读全文
摘要:
var express =require('express'); var app=express(); app.get('/',function(req,res){ res.send('Hello wold'); }); var server =app.listen(3000,function(){ var host=server.address().address; var port=serve 阅读全文
摘要:
https://cloud.tencent.com/developer/article/1535701 tomact https://my.oschina.net/u/3769333/blog/1812435 使用端口8989 阅读全文
摘要:
https://segmentfault.com/a/1190000015144126 阅读全文
摘要:
1.初始化显示 beforCreate() created() beforeMount() mounted() 2.更新状态 beforeUpdate() updated() 3.消毁vue实例: vm.$destory() beforeDestory() destoryed() 2.常用的生命周期 阅读全文