摘要:
// 跨域 app.all('*', function (req, res, next) { res.header('Access-Control-Allow-Origin', '*'); res.header('Access-Control-Allow-Headers', 'Content-Typ 阅读全文
摘要:
文件目录: public js test.js src app.js ... 静态目录设置方式: // 访问路径加上前缀路由: app.use('/aa',express.static(path.join(__dirname, '../public'))) // 访问:http://localhos 阅读全文
摘要:
const dataMiniURLBase64 = reqData.miniURL.replace(/^data:image\/\w+;base64,/, '') const dataMiniBuffer = Buffer.from(dataMiniURLBase64, 'base64') //把b 阅读全文
摘要:
原因: 换行符、空格也是一个字符,会占据一个位置,导致空白出现。 解决: 换行的元素进行浮动 换行元素的父元素设置font-size: 0;, 换行元素再正常设置font-size: 13px;之类的 欢迎补充。 例子: * { margin: 0; padding: 0; } .father { 阅读全文