摘要:
异步和回调 这两个最好还是分开来说 回调 var b = function (){ //执行相关的代码 } var a = function (b){ //执行相关的代码 b(); } a(b); 这就是回调,不过一般的套路都是 var a = function (callback){ if(cal 阅读全文
摘要:
es6 Generator function helloWorldGenerator() { yield 'hello'; yield 'world'; return 'ending'; } var hw = helloWorldGenerator(); hw.next() // { value: 阅读全文
摘要:
ubuntu 关闭触摸板和启用触摸板 sudo modprobe r psmouse sudo modprobe psmouse cd targetLocation 打开目录 . — 切换到当前目录(貌似没有什么意义)(.这个目录可以通过ls a看到) .. — 切换到上层目录 ~ — 回到家目录( 阅读全文