上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 在 vue.config.js 的文件中加入下面这段话 const Timestamp = new Date().getTime(); module.exports = { configureWebpack: { // webpack 配置 output: { // 输出重构 打包编译后的 文件名称 阅读全文
posted @ 2022-01-13 16:23 三线码工 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 1.验证手机号 //验证手机号 function isPoneAvailable(str) { var myreg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/; if (!myreg.test(str)) { return false; } else { return true 阅读全文
posted @ 2022-01-10 11:05 三线码工 阅读(471) 评论(0) 推荐(0) 编辑
摘要: <el-upload class="avatar-uploader" action="http://************/file/upload" :show-file-list="false" name="image" :on-success="handleAvatarSuccess" :be 阅读全文
posted @ 2021-12-30 09:20 三线码工 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 1.先在小程序后台配置 2. 使用 uni.requestSubscribeMessage方法 以下是开发者工具出行的弹出框,在手机上是正常的上滑框 最好不要用在开发者工具使用 点击取消和允许,再相应的调用接口就可以了,前端只负责弹出框确认,具体的发送信息由服务端去完成和我们没关系 阅读全文
posted @ 2021-12-20 11:24 三线码工 阅读(3271) 评论(1) 推荐(0) 编辑
摘要: uniapp 微信小程序中使用小程序发券插件API 原生的微信小程序更简单参考微信文档 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_3_1.shtml { "plugins": { "sendCoupon": { "version": 阅读全文
posted @ 2021-12-06 11:05 三线码工 阅读(1055) 评论(6) 推荐(0) 编辑
摘要: vscode 快捷键生成vue模板 1.打开 文件--》首选项--》用户片段 2.搜索 选择 3.填写快捷键的代码 ,保存 prefix 表示快捷键为vuebody 表示快捷键后生成的代码 { "Print to console": { "prefix": "vue", "body": [ "<te 阅读全文
posted @ 2021-11-02 16:57 三线码工 阅读(2046) 评论(0) 推荐(1) 编辑
摘要: Error in v-on handler: "TypeError: Cannot set property 'form1' of undefined" 这是找不到子组件的data 使用this.$nextTick 其实和定时器有点像,但是比定时器好用,他是能在DOM更新循环之后执行 this.$n 阅读全文
posted @ 2021-10-17 19:40 三线码工 阅读(2006) 评论(0) 推荐(0) 编辑
摘要: Error: No valid exports main found for '/Users/work/company_fc/a/node_modules/colorette 安装依赖的时候遇到提示问题 原因分析: Node版本可能不对 当前Node默认版本是13.6.0。切换到12.14.1版本, 阅读全文
posted @ 2021-10-16 10:27 三线码工 阅读(336) 评论(0) 推荐(0) 编辑
摘要: <view class="button"> <navigator class="refuse" target="miniProgram" open-type="exit">拒绝</navigator> <button open-type="getPhoneNumber" bindgetphonenu 阅读全文
posted @ 2021-10-12 10:27 三线码工 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: 在npm安装依赖时node-sass报错一直报错 在接手一个新项目时,在安装依赖老是报错,但是都是node-scss问题。 百度了一下,都是说用淘宝源什么的,我搞了半天都没用。 最终发现node版本得和项目的node-scss版要对应,不然就报错了 看看自己的node版本和 node-scss版本是 阅读全文
posted @ 2021-10-11 17:20 三线码工 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 使用不限速「阿里云盘」 先赠送你 500GB 点此链接注册领取500GB:https://pages.aliyundrive.com/mobile-page/web/beinvited.html?code=7182c53 阿里云盘公测吗邀请码 阿里云盘邀请码:7182c53 先注册好,再下载相应的A 阅读全文
posted @ 2021-06-29 13:22 三线码工 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 先看微信文档 https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#3 1.安装 方法一 npm install jweixin-module --save 方法二 下载地址:https://unpkg.co 阅读全文
posted @ 2021-06-18 14:30 三线码工 阅读(231) 评论(0) 推荐(1) 编辑
摘要: 1.安装 npm i html2canvas 2.代码 <template> <view> <view class="print " @click="generatorImage" > <span style="font-size: 30px;">打印</span> </view> <view cl 阅读全文
posted @ 2021-06-18 13:52 三线码工 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: 1.在后台中进入设置页面 2.开通js权限,一般很快就会同意的,我这已经开通了的效果 3.添加css给小可爱去边框 #live2dcanvas { border: none !important; } 4.添加关键的js代码,一个是樱花效果,一个是小可爱。 <script type="text/ja 阅读全文
posted @ 2021-06-17 14:49 三线码工 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Element UI 中国省市区级联数据 npm install element-china-area-data -S 1.按需导入 import { provinceAndCityData, regionData, provinceAndCityDataPlus, regionDataPlus, 阅读全文
posted @ 2021-05-18 14:53 三线码工 阅读(4005) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页