Yeung‘s blog

You build it, you run it.
JavaScript中检测对象的方法 新手章 1. typeof操作符 这种方法对于一些常用的类型来说那算是毫无压力,比如Function、String、Number、Undefined等,但是要是检测Array的对象就不起作用了。 利用typeof除了array和null判断为object外,其他的都可以正常判断 ```js alert(typeof null); // "objec......
mac环境下,使用homebrew 安装的node, 默认是最高版本,命令如下: ```bash brew install node ``` 那么使用homebrew如何安装指定版本的node呢? 1. 如果之前使用**brew install node**安装过node,需要先执行**brew unlink node**来'解绑'node 2. 查找可用的node版本 **brew sea......

2020-03-25 16:54:30

【vue】组件之间的通信
1、父与子通信 (props down) ```js 1.发送 2.接受 到son组件: Vue.component('son',{ props:['myName'], template:` ......
1. 打开本地git bash,使用如下命令生成ssh公钥和私钥对 ```bash ssh-keygen -t rsa -C 'xxx@xxx.com' 然后一路回车(-C 参数是你的邮箱地址) ``` 2. 然后会出现:Enter file in which to save the key (/Users/yzq/.ssh/id_rsa): ``` 回车 ``` 3......
1. 文件夹操作 ~~~bash 创建文件夹 mkdir 文件夹名称 ... // directory 目录 支持创建多个 进入文件夹 cd 目标文件夹 // change 改变 删除空文件夹 rmdir 文件夹名称 // remove 更改 查看当前路径 pwd 查看当前目录 ls //列举文件 ls -l // 以列表的形式展示目录 l......