: $link.click (e) =>
this._clicked(e)
는 커피 스크립트에 투명하게 결합 할 수있는 방법은 정말 없을까? 그에게이 포인터 어떤 아이디어를 유지, 직접 이벤트에, 내 this._clicked 방법을 결합하는 것 $link.click =this._clicked
또는 무언가를 : 나는 할 수 있도록하고 싶습니다? 커피
이 큰 @nav.on 'click', ->
_this.mover _this.nav.index $(@)
작동하지만 지방 화살표를 사용할 수 있는지 나는이 @nav.on 'click', =>
@mover @nav.index $(????)
처럼 대신 궁금하지만 내가 자리에 둘 것 @ 인 경우 _this 대신 this이 표시됩니까?
수학 프로그램에서 작업 중이며 ECMAScript6Arrow의 새로운 기능을 구현할 준비가되었습니다. 에 Lambda이라는 표현과 매우 흡사합니다. let square = y => y * y;
console.log(square(4));
나는 Arrow 기능을 사용 후 내 목표를 달성 여전히 Arrow 기능이 작동 얼마나 혼란. Lambda 표현과 비슷
타이프 라이터 인텔리이를 위해 잘 작동 지방 화살표 기능이 작동하지 않습니다 : class SampleClass {
/**
* Does stuff
*
* @param blah stuff needing done
*/
public doStuff(blah: string) {
}
}
var sam
이 _bindEvents: ->
@input.bind 'keyup', =>
@filter($(this).val())
if $this .val() is ''
@clearBtn.hide()
else
@clearBtn.show()
그것은 나에게 명확 것을 이제 '@'표현이 코드 고려 '이'범위 '_th