摘要: cookie 虽然很方便,但是使用 cookie 有一个很大的弊端,cookie 中的所有数据在客户端就可以被修改,数据非常容易被伪造,那么一些重要的数据就不能存放在 cookie 中了,而且如果 cookie 中数据字段太多会影响传输效率。为了解决这些问题,就产生了 session,session 阅读全文
posted @ 2020-11-18 10:21 2020,hello 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1. 类库介绍 1. web项目,基于express4 ejs模板2. 通过request抓取网页3. 通过jQuery, jsdom, htmlparser提取网页内容 安装依赖包 npm install jsdom npm install jquery npm install xmlhttpre 阅读全文
posted @ 2020-11-18 10:20 2020,hello 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 官网主页: http://html2canvas.hertzen.com/ 问题汇总中。。。 阅读全文
posted @ 2020-11-17 09:48 2020,hello 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 安装nodejs的mysql插件 npm install mysql --save 创建数据库配置文件 项目根目录下创建config目录,config目录内新建db.js,来实现基本的数据库连接 db.js var mysql = require("mysql"); var pool = mysql 阅读全文
posted @ 2020-10-27 15:08 2020,hello 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 1、创建exprss项目 express -e myapp 新建一个以ejs为模板的express项目 cd myapp npm install 2.安装nodejs的mysql插件,后续使用 npm install mysql --save 控制台执行 node ./bin/www 在浏览器 执行 阅读全文
posted @ 2020-10-27 08:34 2020,hello 阅读(468) 评论(0) 推荐(0) 编辑
摘要: page - iframe - status http - http - allowedhttp - https - allowedhttps- http - not allowed https嵌套http不支持https- https - allowedhttps - https - insecu 阅读全文
posted @ 2020-10-26 18:32 2020,hello 阅读(5942) 评论(0) 推荐(0) 编辑
摘要: 参考文档 git项目地址 pdfh5.js 基于pdf.js和jQuery,web/h5/移动端PDF预览手势缩放插件。 注意:本地绝对路径地址不能加载,跨域问题用代理或者服务端解决。 svg模式渲染存在缺陷,只能渲染普通pdf,带签名、印章的可能会渲染不全,报错,pdf.js官方目前没有给出解决方 阅读全文
posted @ 2020-10-26 14:23 2020,hello 阅读(10286) 评论(0) 推荐(0) 编辑
摘要: text-align:justify; text-justify: distribute-all-lines; text-align-last: justify; 阅读全文
posted @ 2020-10-16 10:05 2020,hello 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1、vertical-align 属性 vertical-align属性只对行内元素有效,对块内元素无效! 当display:inline-block;为必要条件的时候,可以适当用table-cell取替、 将display属性设置为table-cell,块元素转化为单元格,然后加上vertical 阅读全文
posted @ 2020-10-15 10:46 2020,hello 阅读(131) 评论(0) 推荐(0) 编辑