上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 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模板引 阅读全文
posted @ 2019-12-29 12:21 distant-遥远 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 创建public文件夹放入html文件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> </html><!DOCTYPE html> <html lang=" 阅读全文
posted @ 2019-12-28 17:48 distant-遥远 阅读(229) 评论(0) 推荐(0) 编辑
摘要: // 路由,(根据请求路径和请求方式进行路径的分发处理) // http 的常用请求方式 // post 添加 // get 查询 // put 更新 // delete 删除 // restful api (一种url的格式) const express =require('express'); const app=express(); // ap... 阅读全文
posted @ 2019-12-28 14:57 distant-遥远 阅读(186) 评论(0) 推荐(0) 编辑
摘要: const express =require('express'); const app=express(); //实现静态资源服务 let server=app.use(express.static('public')); server.listen(3000,()=>{ console.log( 阅读全文
posted @ 2019-12-28 14:28 distant-遥远 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-12-28 14:19 distant-遥远 阅读(1057) 评论(0) 推荐(0) 编辑
摘要: https://cloud.tencent.com/developer/article/1535701 tomact https://my.oschina.net/u/3769333/blog/1812435 使用端口8989 阅读全文
posted @ 2019-12-28 10:12 distant-遥远 阅读(124) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000015144126 阅读全文
posted @ 2019-12-27 21:53 distant-遥远 阅读(299) 评论(0) 推荐(0) 编辑
摘要: loding most star repo is{{repoName}} 阅读全文
posted @ 2019-12-24 18:36 distant-遥远 阅读(665) 评论(0) 推荐(0) 编辑
摘要: man.js引入 阅读全文
posted @ 2019-12-24 18:09 distant-遥远 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 1.初始化显示 beforCreate() created() beforeMount() mounted() 2.更新状态 beforeUpdate() updated() 3.消毁vue实例: vm.$destory() beforeDestory() destoryed() 2.常用的生命周期 阅读全文
posted @ 2019-12-20 14:39 distant-遥远 阅读(305) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页