上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 39 下一页
摘要: @import url('http://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900'); body{ font-family: 'Poppins',sans-serif; } body{ fo 阅读全文
posted @ 2019-07-02 18:26 武卡卡 阅读(1071) 评论(0) 推荐(1) 编辑
摘要: text-shadow: 1px 1px 3px #000; 阅读全文
posted @ 2019-06-25 22:04 武卡卡 阅读(234) 评论(0) 推荐(1) 编辑
摘要: 增加 type 即可 <script type="text/javascript" src="。。。.js"></script> 阅读全文
posted @ 2019-06-24 10:22 武卡卡 阅读(2802) 评论(0) 推荐(0) 编辑
摘要: 1,使用 ajax 提交评论内容 给 api.js 2,数据库 contents 增加评论字段 3,后台路由 api.js 接收并完成存储 /** 增加评论(用户,内容,时间) */ router.post('/comment/post',(req,res)=>{ /** * 需要前端提交文章的id 阅读全文
posted @ 2019-06-22 23:06 武卡卡 阅读(241) 评论(0) 推荐(0) 编辑
摘要: width: 100%; height: 100%; display: block; width: 100%; height: 100%; display: block; 阅读全文
posted @ 2019-06-22 09:51 武卡卡 阅读(1646) 评论(0) 推荐(0) 编辑
摘要: 1,前台 ,/views/main/index.html ,将文章 id 通过url 传送给后台 {% for content in contents %} <div class="panel-body"> <div class="panel panel-info"> <div class="pan 阅读全文
posted @ 2019-06-20 21:51 武卡卡 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 一,前台 , views/main/index.html ,通过get传送给后台 思路 : 将栏目ID 传递给后台,后台根据 栏目的ID 返回相应的数据 {% if category == '' %} <li class="active"><a href="/">首页 <span class="sr 阅读全文
posted @ 2019-06-20 20:47 武卡卡 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 一,后台路由文件 /router/main.js var express = require('express') var router = express.Router() var Category = require('../models/Category') var Content = req 阅读全文
posted @ 2019-06-20 18:46 武卡卡 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 一,前台 1,添加文章 /views/admin/content_add.html {% extends 'layout.html' %} {% block main %} <ol class="breadcrumb"> <li><a href="/admin">管理首页</a></li> <li> 阅读全文
posted @ 2019-06-19 20:34 武卡卡 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 一,前台分类导航展示 1,后台文件: /router/main.js router.get('/',(req,res,next)=>{ /** * 从数据库中读取分类信息 * rs是一个数组类型的记录 */ Category.find().then((categories)=>{ console.l 阅读全文
posted @ 2019-06-17 10:02 武卡卡 阅读(298) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 39 下一页