上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 25 下一页
摘要: // 跨域 app.all('*', function (req, res, next) { res.header('Access-Control-Allow-Origin', '*'); res.header('Access-Control-Allow-Headers', 'Content-Typ 阅读全文
posted @ 2022-04-07 20:02 柯宝宝智商感人 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 文件目录: public js test.js src app.js ... 静态目录设置方式: // 访问路径加上前缀路由: app.use('/aa',express.static(path.join(__dirname, '../public'))) // 访问:http://localhos 阅读全文
posted @ 2022-04-07 19:50 柯宝宝智商感人 阅读(424) 评论(0) 推荐(0) 编辑
摘要: const dataMiniURLBase64 = reqData.miniURL.replace(/^data:image\/\w+;base64,/, '') const dataMiniBuffer = Buffer.from(dataMiniURLBase64, 'base64') //把b 阅读全文
posted @ 2022-04-07 15:22 柯宝宝智商感人 阅读(869) 评论(0) 推荐(0) 编辑
摘要: 原因: 换行符、空格也是一个字符,会占据一个位置,导致空白出现。 解决: 换行的元素进行浮动 换行元素的父元素设置font-size: 0;, 换行元素再正常设置font-size: 13px;之类的 欢迎补充。 例子: * { margin: 0; padding: 0; } .father { 阅读全文
posted @ 2022-04-07 14:07 柯宝宝智商感人 阅读(99) 评论(0) 推荐(0) 编辑
摘要: watch:{ "$route":function(to,from){ console.log(to.path) } } 阅读全文
posted @ 2022-04-04 17:40 柯宝宝智商感人 阅读(33) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 25 下一页