| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
| Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Filters extends React.Component { | |
| // updatePriceFilter = (newValue) => { | |
| // this.props.selectionsChanged({ | |
| // ...this.props.filterSelections, | |
| // price: newValue | |
| // }) | |
| // }; | |
| // | |
| // updateAgeFilter = (newValue) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // URL: http://a.com/foo | |
| var win = window.open('http://b.com/bar'); | |
| win.postMessage('Hello, bar!', 'http://b.com'); | |
| // URL: http://b.com/bar | |
| window.addEventListener('message',function(event) { | |
| console.log(event.data); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 导出对象 | |
| export { firstname, lastname }; | |
| // 导出变量 | |
| export const firstname = 'robin'; | |
| export const lastname = 'wieruch'; | |
| // 导入整个模块 | |
| import * as myModule from "xxx"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function spliceOne(list, index) { | |
| for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) | |
| list[i] = list[k]; | |
| list.pop(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 高斯模糊层UI样式 */ | |
| .mw-course-learn-blur-image-layer { | |
| width: 100%; | |
| &_img { | |
| width: 100%; | |
| overflow: hidden; | |
| height: rem(422px); | |
| font-size: 0; | |
| -webkit-filter: blur(2px); | |
| filter: blur(2px); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //1 best | |
| var module = { | |
| prop: true, | |
| method: function(){ | |
| } | |
| } | |
| //2 | |
| var module2 = (function() { | |
| var privateProp; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //ModuleA是模块名字 | |
| (function(){ | |
| // var ModuleA = { | |
| // } | |
| // var ModuleA = function() { | |
| // return function() { | |
NewerOlder