上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 26 下一页
摘要: 注意如果是域名:否则报错 阅读全文
posted @ 2019-03-26 14:41 南瓜壳 阅读(678) 评论(0) 推荐(0)
摘要: 1、firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld 开机禁用 : systemctl disable firewalld 开机启用 : 阅读全文
posted @ 2019-03-25 13:00 南瓜壳 阅读(81) 评论(0) 推荐(0)
摘要: 当调用的两个函数同时都满足条件时js执行顺序并没有改变只是同时都执行了 阅读全文
posted @ 2019-03-20 17:41 南瓜壳 阅读(79) 评论(0) 推荐(0)
摘要: test() 方法是正则表达式的一个方法,用于检测一个字符串是否匹配某个模式.test 方法检查字符串是否与给出的正则表达式模式相匹配,如果是则返回 true,否则就返回 false。每个正则表达式都有一个 lastIndex 属性,用于记录上一次匹配结束的位置.语法:regexp.test(str 阅读全文
posted @ 2019-03-20 14:41 南瓜壳 阅读(12195) 评论(0) 推荐(0)
摘要: 声明式:<router-link :to="{name:'index'}}"> 或者 <router-link to='/index'>编程式:router.push(...)方法一: this.$router.push({path:'路径')};(自己常用)方法二:this.$router.pus 阅读全文
posted @ 2019-03-20 09:49 南瓜壳 阅读(1156) 评论(0) 推荐(0)
摘要: <script> var code = ""; for(var i=0;i<6;i++){ var radom = Math.floor(Math.random()*10); code += radom; } console.log(code); </script> var code = ""; f 阅读全文
posted @ 2019-03-20 09:18 南瓜壳 阅读(2916) 评论(0) 推荐(0)
摘要: 注意嵌套关系已经使用过flex的元素不能再使用否则高度会有bug 阅读全文
posted @ 2019-03-15 15:05 南瓜壳 阅读(117) 评论(0) 推荐(0)
摘要: 用for循环或者forEach遍历数组的话,在方法体内部splice都得不到正确的结果,解决方法是使用逆向循环 方法一,用 filter var arr = [2, 3, 5, 7]; arr = arr.filter(item => item == 5); console.log(arr); 方法 阅读全文
posted @ 2019-03-15 10:55 南瓜壳 阅读(3131) 评论(0) 推荐(0)
摘要: 最近在使用vue axios发送请求,结果出现跨域问题,网上查了好多,发现有好几种结局方案。1:服务器端设置跨域header(“Access-Control-Allow-Origin:*”);header(“Access-Control-Allow-Headers:content-type”);he 阅读全文
posted @ 2019-03-14 11:18 南瓜壳 阅读(68944) 评论(1) 推荐(3)
摘要: 一 设置Git的user name和email git config --global user.name "xxx" git config --global user.email "xxx@xxx.com" 二 生成SSH密钥过程1、查看是否已经有了ssh密钥:cd ~/.ssh如果没有密钥则不会 阅读全文
posted @ 2019-03-08 14:49 南瓜壳 阅读(38232) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 26 下一页