- 2024-09-15获取动态页面html
AJAXAJAX(异步JavaScript和XML)是一种无需重新加载整个页面的情况下,与服务器交换数据,将增量信息局部更新在用户界面上的技术。AJAX具有异步性,AJAX请求不会阻塞用户界面,用户可以在请求处理的同时继续与页面交互,具有更强的交互性。AJAX能使网页从浏览器请求少量信息而不是整个页面。
- 2024-09-08Lamp+发布社区网页
Lamp+发布discuz社区网页搭建lamp环境还原初始快照,桥接网卡,关闭防火墙和selinux,更改主机名为web写入/etc/hosts本地域名解析,测试是否能ping通示例:(1)使用yum安装httpd mariadb phpyum-yinstallhttpdmariadb-servermariadbphpphp-mysql (2)启动httpd、mar
- 2024-09-02一个练习项目,好玩的bbs-nodejs-restify
代码:varrestify=require('restify')varserver=restify.createServer()constmd5=require('md5');constquerystring=require('querystring');//npminstallrestifyvarsecretKey='saacac3423@21212';varpagesize
- 2024-09-02一个练习项目,好玩的bbs-nodejs-fastify
代码:constfastify=require("fastify")();constmd5=require('md5');constquerystring=require('querystring');//npminstallfastifyvarsecretKey='saacac3423@21212';varpagesize=20;varmysql=req
- 2024-09-02一个练习项目,好玩的bbs-go-iris
代码:packagemain/**goenv-wGO111MODULE=ongoenv-wGOPROXY=https://goproxy.cngomodinitgosgomodtidygomodvendor*/import("crypto/md5""database/sql""fmt""log""math"
- 2024-09-02一个练习项目,好玩的bbs-go-echo
代码:packagemain/**goenv-wGO111MODULE=ongoenv-wGOPROXY=https://goproxy.cngomodinitgosgomodtidygomodvendor*/import("crypto/md5""database/sql""fmt""log""math"
- 2024-09-02一个练习项目,好玩的bbs-go-beego
代码:packagemain/**goenv-wGO111MODULE=ongoenv-wGOPROXY=https://goproxy.cngomodinitgosgomodtidygomodvendor*/import("crypto/md5""database/sql""fmt""log""math"
- 2024-09-02一个练习项目,好玩的bbs-go-chi
代码:packagemain/**goenv-wGO111MODULE=ongoenv-wGOPROXY=https://goproxy.cngomodinitgosgomodtidygomodvendor*/import("crypto/md5""database/sql""encoding/json""fmt""
- 2024-09-02一个练习项目,好玩的bbs-perl-mojolicious
代码:#!D:/software/Strawberry/perl/bin/perl.exeBEGIN{push(@INC,'D:/workspace/studys/study_bbs');}useMojolicious::Lite-signatures;useutf8;useNet::MySQL;useEncode;usePOSIX;useJSONqw/encode_jsondecode_json/;useDigest;o
- 2024-09-02一个练习项目,好玩的bbs-perl-dancer
代码:#!D:/software/Strawberry/perl/bin/perl.exeBEGIN{push(@INC,'D:/workspace/studys/study_bbs');}useutf8;useDancer;useDancer::Serializer::JSON;useNet::MySQL;useEncode;usePOSIX;useJSONqw/encode_jsondecode_json/;useDi
- 2024-09-02一个练习项目,好玩的bbs-python-cherrypy
代码:importcherrypyimportMySQLdbimportjsonimporthashlibimportrandomimportmathimportosfromdatetimeimportdatetimeclassDateEncoder(json.JSONEncoder):defdefault(self,obj):ifisinstance(obj,datetime):returnobj
- 2024-09-02一个练习项目,好玩的bbs-python-tornado
代码:importos.pathimporttornado.httpserverimporttornado.webimporttornado.optionsimporttornado.ioloopfromtornado.optionsimportdefine,optionsimportMySQLdbimportjsonimporthashlibimportrandomimportmathimportosfromdatetimeimportda
- 2024-09-02一个练习项目,好玩的bbs-python-flask
代码:fromflaskimportFlask,make_response,requestimportos.pathimportMySQLdbimportjsonimporthashlibimportrandomimportmathimportosfromdatetimeimportdatetimeapp=Flask(__name__)classDateEncoder(json.JSONEncoder):defdefault(se
- 2024-09-02一个练习项目,好玩的bbs-python-fastapi
代码:fromfastapiimportFastAPI,Response,Cookie,Dependsfromfastapi.responsesimportJSONResponsefromfastapi.responsesimportHTMLResponseimportos.pathimportMySQLdbimportjsonimporthashlibimportrandomimportmathimportosfromdatetimeim
- 2024-09-02一个练习项目,好玩的bbs-python-bottle
代码:frombottleimportroute,run,templatefrombottleimportBottle,request,responseimportos.pathimportMySQLdbimportjsonimporthashlibimportrandomimportmathimportosfromdatetimeimportdatetimeclassDateEncoder(json.JSONEncoder):
- 2024-09-02一个练习项目,好玩的bbs-python-pyramid
代码:fromwsgiref.simple_serverimportmake_serverfrompyramid.configimportConfiguratorfrompyramid.viewimportview_configfrompyramid.responseimportResponseimportos.pathimportMySQLdbimportjsonimporthashlibimportrandomimportmathimport
- 2024-09-02一个练习项目,好玩的bbs-python-webpy
代码:importwebimportos.pathimportMySQLdbimportjsonimporthashlibimportrandomimportmathimportosfromdatetimeimportdatetimeclassDateEncoder(json.JSONEncoder):defdefault(self,obj):ifisinstance(obj,datetime):
- 2024-08-28【Shell脚本】批量修改文件名
示例:#toucharticle_{1..3}.html#lsarticle_1.htmlarticle_2.htmlarticle_3.html把article改为bbs方法1:forfilein$(ls*html);domv$filebbs_${file#*_}#mv$file$(echo$file|sed-r's/.*(_.*)/bbs\1/')#mv$file$(ec
- 2024-06-21一个练习项目,好玩的bbs-前端部分
common.jsfunctionsetCookie(name,value,daysToLive=7){letcookie=name+"="+encodeURIComponent(value);if(typeofdaysToLive==="number"){cookie+=";max-age="+(daysToLive*24*60*60);//max-ag
- 2024-06-21一个练习项目,好玩的bbs-java
java这个我是用springboot做的目录结构 application.ymlspring:datasource:driver-class-name:com.mysql.cj.jdbc.Driverurl:jdbc:mysql://127.0.0.1:3306/my_bbs?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8&am
- 2024-06-21一个练习项目,好玩的bbs-c#
c#代码:usingMySql.Data.MySqlClient;usingSystem.Data;usingNewtonsoft.Json;usingSystem.Security.Cryptography;usingSystem.Text;intpagesize=20;stringsecretKey="saacac3423@21212";varbuilder=WebApplication.CreateSlimBuilder(args
- 2024-06-21一个练习项目,好玩的bbs-1
目录结构 nginx配置:upstreambbs_upstream{server127.0.0.1:1081;#phpserver127.0.0.1:1086;#csharpeserver127.0.0.1:1087;#javaserver127.0.0.1:1084;#ruby-sinatraserver127.0.0.1:1104;#ruby-busker
- 2024-03-29BBS项目项目总结
【一】表分析表设计【二】项目搭建django项目搭建【三】建表表的创建【四】用户相关功能用户的注册、登录、修改、注销以及公共方法【五】admin管理后台admin后台管理和定制【六】分页器分页器--半城烟雨-博客园(cnblogs.com)【七】个人站点搭建【1】个人站点侧
- 2024-03-29BBS
BBS博客园项目BBS表设计1.用户表继承AbstractUser 扩展phone电话号码avatar用户头像 is_deleted是否删除create_time创建时间外键字段 一对一个人站点表2.个人站点表 site_time站点名称site_
- 2024-03-28BBS项目创作流程
BBS项目创作流程【零】完整文件gitee仓库BBS/BBS1.0/BlogBasedSystem·Lea4ning/DjangoObject-码云-开源中国(gitee.com)【一】项目基本配置【1】所需模块asgiref==3.7.2beautifulsoup4==4.12.3certifi==2024.2.2charset-normalizer==3.3.2Django==3.2.12f