사용자 작업에 따라이 플러그인에서 extraParams을 변경하려고합니다. 다음 줄을 실행JQuery 플러그인의 내부 속성에 액세스 할 수 있습니까?
var t = new $.TextboxList('#entSearch', {unique: true, plugins: {
autocomplete: {
minLength: 3,
queryRemote: true,
placeholder: false,
remote: {
url: "{{=URL(r=request, f='call/json/suggest')}}",
extraParams: {type: "", guid: ""}
}
}
}
});
에서 오류가 발생합니다 : autocomplete.remote이
var tmp = autocomplete['remote']['extraParams']['type'];
나는 DICT에서 그들을 참조 할 것 같은 플러그인이 내부 속성에 액세스 할 수있는 방법이 있나요을 정의되지?
당신은 위의 변수로 그들을 정의 할 수 있습니까? – alex