摘要: 获取一个月份N个月后的月份 nafterMonth(dtstr, n) { var dt = new Date(dtstr.substring(0, 4), dtstr.substring(4, 6), 1); dt.setMonth(dt.getMonth() + n); var yy1 = dt 阅读全文
posted @ 2021-10-19 17:30 半侧阳光 阅读(1090) 评论(0) 推荐(0)
摘要: 在babel.config.js 文件中加入env: { "development":{ "plugins": ["dynamic-import-node"] }} 阅读全文
posted @ 2021-10-13 16:57 半侧阳光 阅读(959) 评论(0) 推荐(0)
摘要: 需求:扫描识别实物,根据实物展示出对应的效果,实际就是一个camera然后弄了点动画伪装成扫描,然后截取图片,传给后端,后端进行识别。因为是快一年前的项目了 ,有些地方记不太清楚了。 开始是用camera组件takePhoto每500毫秒获取一次图片然后发送请求识别图片发现在 IOS下会有快门声音 阅读全文
posted @ 2021-03-01 15:41 半侧阳光 阅读(2273) 评论(0) 推荐(0)
摘要: 1. 多表达式多 if 判断 if ([1, 2, 3, 4, 5].includes(columnIndex)) { } 替 换 if (columnIndex 1 || columnIndex 2 || columnIndex 3 || columnIndex 4|| columnIndex 5 阅读全文
posted @ 2021-02-22 18:21 半侧阳光 阅读(42) 评论(0) 推荐(0)
摘要: gitHub: https://github.com/wxx1030/xiao-vue-music 接口是找的qq音乐的接口 , 目前所有接口都可以使用 页面截图: 阅读全文
posted @ 2021-01-06 18:01 半侧阳光 阅读(166) 评论(0) 推荐(0)
摘要: vue-cli 2.0 在 build\webpack.base.conf.js const path = require('path'); function resolve (dir) { return path.join(__dirname, dir) } module.exports = { 阅读全文
posted @ 2020-12-08 18:32 半侧阳光 阅读(637) 评论(0) 推荐(0)