1
我正在給搜索方法的調用,並傳遞一個值傳遞jQuery的自動完成搜索方法值來搜索事件
$('myelem').autocomplete('search','test');
然後我對搜索事件
search: function (event,ui){
//I need to access the value 'test' passed from the search method in the search event
}
所以事件處理程序遠遠我無法找到如何訪問搜索事件處理程序中的值。該值在request.term
屬性中的source: function (request, response)
事件處理程序中可用。