10 2020 档案

摘要:安装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
摘要: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
摘要: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
摘要:参考文档 git项目地址 pdfh5.js 基于pdf.js和jQuery,web/h5/移动端PDF预览手势缩放插件。 注意:本地绝对路径地址不能加载,跨域问题用代理或者服务端解决。 svg模式渲染存在缺陷,只能渲染普通pdf,带签名、印章的可能会渲染不全,报错,pdf.js官方目前没有给出解决方 阅读全文
posted @ 2020-10-26 14:23 2020,hello
摘要:text-align:justify; text-justify: distribute-all-lines; text-align-last: justify; 阅读全文
posted @ 2020-10-16 10:05 2020,hello
摘要:1、vertical-align 属性 vertical-align属性只对行内元素有效,对块内元素无效! 当display:inline-block;为必要条件的时候,可以适当用table-cell取替、 将display属性设置为table-cell,块元素转化为单元格,然后加上vertical 阅读全文
posted @ 2020-10-15 10:46 2020,hello