Giter VIP home page Giter VIP logo

personalblog's Introduction

结构分析 功能分析

遇到的功能实现:

对于文章插入页面等操作,v-html能将导入的文章字符串转化为html格式( 可以变成空格) 若是直接{{xxx}}则会是保留

关于验证码:引入svg-captcha库

let captcha = require(“svg-saptcha”);

web层中

let img = captcha.create({fontSize: 50, width: 100, height:34 });

对于翻页功能和博客展示,加入判断url中的tagId部分,以此来判断是普通翻页还是查询标签的翻页

关于留言部分,需要在每个留言中都加parent属性,代表它是回复谁的。

在提交留言表中,默认parent是-1或其他的特殊值,所以默认提交时是没有回复人。

若是点击了回复按钮,则跳到留言提交表,且添加上那个回复按钮的留言id作为parent

那么在页面中,判断到parent不是普通值时,就渲染@xxx字样

不要把请求的参数直接放到地址栏上别人传递恶意参数,服务器就中断了(需要PM2监听,崩了就重启)

personalblog's People

Contributors

cjx259 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.