2020年8月6日

摘要: Host key verification failed.fatal: Could not read from remote repository. Please make sure you have the correct access rightsand the repository exist 阅读全文

posted @ 2020-08-06 17:45 嗷呜~ 阅读(6299) 评论(0) 推荐(0)

2020年7月31日

摘要: install 依赖时,core-js安装失败 npm install core-js@2 或:cnpm install core-js@2 阅读全文

posted @ 2020-07-31 18:07 嗷呜~ 阅读(3672) 评论(0) 推荐(0)

摘要: 修改本地电脑的仓库用户名和邮箱 先查看本地的用户名和邮箱 git config user.name git config user.email 发现是上个用户的,进行修改 git config --global user.name "your name" git config --global us 阅读全文

posted @ 2020-07-31 10:45 嗷呜~ 阅读(3346) 评论(0) 推荐(0)

摘要: 问题: 最近在运行新项目时,安装依赖包时 cnpm install 报错。 cnpm : 无法将“cnpm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写 ,如果包括路径,请确保路径正确,然后再试一次。 所在位置 行:1 字符: 1 解决: 1、先查看是否安装了cnpm 阅读全文

posted @ 2020-07-31 10:29 嗷呜~ 阅读(1040) 评论(0) 推荐(0)

2020年7月8日

摘要: 1、小程序 封装请求 判断 状态不是200 ,跳转页面 export function request(options) { // 获取设备信息 let versionType = global.globalData.versionType // 获取小程序版本信息 let accountType 阅读全文

posted @ 2020-07-08 16:37 嗷呜~ 阅读(192) 评论(0) 推荐(0)

摘要: 1、闭包 2、全局变量( 没有声明的变量) 3、计数器没有清除(setInterval) 阅读全文

posted @ 2020-07-08 11:34 嗷呜~ 阅读(190) 评论(0) 推荐(0)

摘要: 1、减少http请求 2、避免使用全局变量 3、避免使用table表格,因为table加载要比 div+css慢 4、避免全局查找 阅读全文

posted @ 2020-07-08 11:25 嗷呜~ 阅读(225) 评论(0) 推荐(0)

2020年7月6日

摘要: 近期项目 进去突然报错Avoided redundant navigation to current location: "/system/personNumList" 查资料发现说是 因为路由重复。 在router.js下加入一下代码即可 阅读全文

posted @ 2020-07-06 11:37 嗷呜~ 阅读(741) 评论(0) 推荐(0)

2020年6月29日

摘要: 1、父到子传值 props 子组件:声明一个props属性 父组件:绑定子组件声明的那个属性 2、子到父组件传值 2.1 通过ref 父组件通过this.$ref来获取子组件的数据在父组件中引入子组件,通过给子组件添加ref属性,利用this.$ref对象来获取子组件的值 2.2 $emit 和 v 阅读全文

posted @ 2020-06-29 16:42 嗷呜~ 阅读(244) 评论(0) 推荐(0)

2020年6月28日

摘要: web-view:每个页面只能有一个 web-view,承载网页的容器。会自动铺满整个小程序页面,并覆盖其他组件。个人类型的小程序暂不支持使用。 官方文档(https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html 阅读全文

posted @ 2020-06-28 16:07 嗷呜~ 阅读(1754) 评论(0) 推荐(0)

摘要: 前端通过wx.requestSubscribeMessage(Object object)调起客户端小程序订阅消息界面,返回用户订阅消息的操作结果。用户勾选订阅面板中“总是保持以上选择,不再询问”时,模板消息会被添加到用户的小程序设置页,通过wx.getSetting接口可以获取用户对相关模板消息的 阅读全文

posted @ 2020-06-28 15:35 嗷呜~ 阅读(12248) 评论(0) 推荐(0)

2020年6月27日

摘要: if (!message.touser) { $("#sound").attr('src', "https://XXXXXX/msg.mp3"); Notification.requestPermission(function (permission) { var notification = ne 阅读全文

posted @ 2020-06-27 15:20 嗷呜~ 阅读(955) 评论(0) 推荐(0)

2020年6月23日

摘要: 场景: 近期小程序出现问题,我们在 miniAction接口 获取openId,openId需要在多个页面跨页面用到,用setStorage存储起来,在需要用到openId的地方用 getStorage取,但是上线后,有部分用户反映小程序登录不上去,经查是openId在传输过程中丢失了,查资料,发现 阅读全文

posted @ 2020-06-23 16:48 嗷呜~ 阅读(5680) 评论(0) 推荐(1)

2020年6月19日

摘要: 动态渲染style可以让两个相似样式的框架只动态修改style即可。 <el-input v-model="itemLabel.oldValue" class="borderNone" :style="{width:(label.flag == 'basePerson'?'40%':'100%'), 阅读全文

posted @ 2020-06-19 15:55 嗷呜~ 阅读(8087) 评论(1) 推荐(1)

2020年6月16日

摘要: 点击 icon input 同步获取焦点,且点击input不可以获取焦点。 代码: html <el-form :model="dataLabel.basePopulationLabels" label-width="80px" size="mini"> <el-form-item label="姓 阅读全文

posted @ 2020-06-16 14:33 嗷呜~ 阅读(490) 评论(0) 推荐(0)

摘要: 需要去掉input边框。 直接在含有 scoped属性的style中修改,是不起作用的。在一个不含scoped属性中 html: css: 效果: 阅读全文

posted @ 2020-06-16 13:51 嗷呜~ 阅读(3985) 评论(0) 推荐(0)

2020年6月15日

摘要: router router为VueRouter的实例,相当于一个全局的路由器对象。通过Vue.use(VueRouter)和VueRouter构造函数得到一个router的实例对象。里面含有很多属性和子对象,例如history对象。经常用的跳转链接就可以用this.$router.push,和rou 阅读全文

posted @ 2020-06-15 17:34 嗷呜~ 阅读(172) 评论(0) 推荐(0)

摘要: hash vue-router 默认 hash 模式 —— 使用 URL 的 hash 来模拟一个完整的 URL,于是当 URL 改变时,页面不会重新加载。 URL:http://www.abc.com/#/hello, hash 的值为#/hello 。 hash 虽然出现URL中,但不会被包含在 阅读全文

posted @ 2020-06-15 17:16 嗷呜~ 阅读(892) 评论(0) 推荐(0)

摘要: router-link 不带参数 <router-link :to="{name:'home'}"> <router-link :to="{path:'/home'}"> //name,path都行, 建议用name // 注意:router-link中链接如果是'/'开始就是从根路由开始,如果开始 阅读全文

posted @ 2020-06-15 16:50 嗷呜~ 阅读(151) 评论(0) 推荐(0)

摘要: 在项目开发中,我们存在用到某个分支某项功能的情况,这个时候我们需要合并某个commit git cherry-pick XXX(commit的id) 具体用法: 我们需要先checkout到需要用到的某项功能的分支,然后git log 得到commit 日志。记录需要用到的commit 的id, 切 阅读全文

posted @ 2020-06-15 11:06 嗷呜~ 阅读(638) 评论(0) 推荐(0)