일부 프로젝트의 경우 녹아웃과 ASP.NET MVC을 사용하고 있습니다.
나는 녹아웃녹아웃 맞춤 바인딩 "after"변수는 무엇입니까?
ko.bindingHandlers.select2 = {
after: ["options", "value", "selectedOptions"],
init: function (el, valueAccessor, allBindingsAccessor, viewModel) {
// no explicit reference to the 'after' variable
},
update: function (el, valueAccessor, allBindingsAccessor, viewModel) {
// no explicit reference to the 'after' variable
}
}
의 다음 bindingHandler
를 사용하고 난 this question에서이 코드를 있고 난 그것을 조금 수정했습니다.
기본적으로 Select2 plugin의 경우 custom binding handler
입니다.
난 그냥 after: ["options", "value", "selectedOptions"],
여기에 무엇을 의미하는지 알고 싶어
질문. init
또는 update
함수에는이 변수에 대한 참조가 없습니다.
이 컨텍스트에서이 변수가 의미가 있습니까? 또는이 실행을 마친 후 사용자 정의 바인딩을 실행하게하는 녹아웃 명령입니다 [options
, value
, selectedOptions
] 바인딩?
참고 custom binding의 설명서에는이 변수에 대한 언급이 없습니다.