摘要: 触摸事件中touchstar、touchmove、touchend、touchcancel事件 onTouchStart 手指触摸屏幕时触发 / 与 onClick 同时使用会出现同时触发问题 - 执行点击事件 可以在onTouchEnd 中通过相对的条件执行 onTouchMove 当手指在屏幕上 阅读全文
posted @ 2020-08-21 18:58 啾啾啾啾一口 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 假设用一个值 showButton true展示 / false不展示 表现: 页面渲染样式错乱 但是htrml代码结构正常 报错: Warning: Prop className did not match. Server: "post-tool-button-master" Client: "p 阅读全文
posted @ 2020-08-21 18:50 啾啾啾啾一口 阅读(956) 评论(0) 推荐(0) 编辑
摘要: 初始化 constructor 定义state 初始状态 用户不使用state的话,纯用props接受参数,有没有constructor都可以,可以不用constructor。 关于 constructor 中的 super() 和 super(props) http://es6.ruanyifen 阅读全文
posted @ 2020-08-21 18:19 啾啾啾啾一口 阅读(133) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-11 18:38 啾啾啾啾一口 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 查看是否有版本号 ls -al ~/.ssh 如果没有就新建,如果有删除再新建 rm -rf .ssh 生成 替换自己的邮箱 ssh-keygen -t rsa -C "123@qq.com" 查看 版本号 注意 指令生成 不要记事本打开使用 cat ~/.ssh/id_rsa.pub 阅读全文
posted @ 2020-05-11 17:43 啾啾啾啾一口 阅读(161) 评论(0) 推荐(0) 编辑
摘要: react 不支持img直接引入 <img src="../../images/img.png" alt="" /> 第一种:使用import ** from ' ......' 引入 import React from 'react'; import img from '../../images/ 阅读全文
posted @ 2020-05-07 19:18 啾啾啾啾一口 阅读(706) 评论(0) 推荐(0) 编辑
摘要: app页面中 created() { //在页面加载时读取sessionStorage里的状态信息 if (sessionStorage.getItem("store")) { this.$store.replaceState( Object.assign( {}, this.$store.stat 阅读全文
posted @ 2020-01-07 15:02 啾啾啾啾一口 阅读(1166) 评论(2) 推荐(0) 编辑
摘要: 一、下列代码中 当foo是什么值的时候 会执行alert("foo!") A."false" B."true" C.1 D.0 E.-1 F.' ' G.undefined H.null I.NaN J.false K.{} L.[] if (!foo) { alert("foo!") } 分析一下 阅读全文
posted @ 2019-11-28 17:18 啾啾啾啾一口 阅读(619) 评论(1) 推荐(0) 编辑
摘要: 先上报错 以表尊重 在vue中 找到 config文件夹中的 index.js文件 配置更改如下 proxyTable: { '/api': { target: 'http://47.240.11.236:8080', //设置你调用的接口域名和端口号 别忘了加http changeOrigin: 阅读全文
posted @ 2019-11-20 15:56 啾啾啾啾一口 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1、require.context() 回忆一下 当我们引入组件时 第一步 创建一个子组件 第二步 import ... form ... 第三步 components:{..} 第四步 页面使用 <...></...> 代码实现: 目录结构:components / context / subse 阅读全文
posted @ 2019-11-20 11:31 啾啾啾啾一口 阅读(3755) 评论(1) 推荐(1) 编辑