- 博客(7)
- 收藏
- 关注
原创 git bash克隆出现问题解决Please make sure you have the correct access rights and the repository exists.
原因:不知 没有记住本地服务器的私钥?解决办法:打开git bash 输入git config --global user.name '你的名字(随意写)'在输入git config --global user.email '你的邮箱'删除.ssh文件夹里面的known_hostsgit bash 输入 ssh-keygen -t rsa -C '你的邮箱'然后回车然后系统会自动在.ssh文件夹下生成两个文件,id_rsa和id_rsa.pub,用记事本打开id_rsa.pub复制全部内容
2022-02-10 15:18:28
331
原创 图片上面添加鼠标事件
<div class="left-content-logo"> <img src="img/images/zhutishichang/left-content-logo.png" border="0" usemap="#Map"></div><map name="Map"> <area shape="rect" coords="0,0,170,60" @mouseenter="showpic(1)" @mouseleave="hid
2022-02-10 15:16:02
236
原创 把本地项目上传到github
在github创建一个空项目在本地clone这个项目把需要上传的项目文件复制到clone到本地的文件夹内git add * 将所有改动文件添加到缓存区git commit -m ‘随便写’git push origin -u masterok完成
2021-01-26 17:14:44
141
1
原创 二十多种数组的处理
一、数组交集1、普通数组const arr1 = [1, 2, 3, 4, 5 , 8 ,9],arr2 = [5, 6, 7, 8, 9];const intersection = arr1.filter(val=>arr2.indexOf(val) > -1)console.log(intersection) //[5, 8, 9]2、数组对象const arr1 = [{ name: 'name1', id: 1 }, { name: 'name2', id: 2 }, {
2021-01-21 18:27:40
290
原创 vue中解决事件冒泡
例:clickDiv(){console.log(“点击了DIV”)}clickBtn(){console.log(“点击了btn”)}当我们点击按钮的时候,控制台就会出现:“点击了btn”和“点击了DIV”,解决:1、<button @click.stop=“clickBtn”>按钮 加一个stop2、<button @click="clickBtn(event)">按钮</button>加一个参数event)">按钮</button&g
2020-05-15 14:49:18
621
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人